Skip to content

Commit 4ba9255

Browse files
committed
fix training
1 parent 863375b commit 4ba9255

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

src/main/java/bwapi/Game.java

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -370,51 +370,51 @@ public boolean hasCreep(final TilePosition position) {
370370

371371
//TODO
372372
public boolean hasPowerPrecise(final int x, final int y) {
373-
return false;
373+
return true;
374374
}
375375
//TODO
376376
public boolean hasPowerPrecise(final int x, final int y, final UnitType unitType){
377-
return false;
377+
return true;
378378
}
379379
//TODO
380380
public boolean hasPowerPrecise(final Position position){
381-
return false;
381+
return true;
382382
}
383383
//TODO
384384
public boolean hasPowerPrecise(final Position position, final UnitType unitType){
385-
return false;
385+
return true;
386386
}
387387
//TODO
388388
public boolean hasPower(final int tileX, final int tileY){
389-
return false;
389+
return true;
390390
}
391391
//TODO
392392
public boolean hasPower(final int tileX, final int tileY, final UnitType unitType){
393-
return false;
393+
return true;
394394
}
395395
//TODO
396396
public boolean hasPower(final TilePosition position){
397-
return false;
397+
return true;
398398
}
399399
//TODO
400400
public boolean hasPower(final TilePosition position, final UnitType unitType){
401-
return false;
401+
return true;
402402
}
403403
//TODO
404404
public boolean hasPower(final int tileX, final int tileY, final int tileWidth, final int tileHeight){
405-
return false;
405+
return true;
406406
}
407407
//TODO
408408
public boolean hasPower(final int tileX, final int tileY, final int tileWidth, final int tileHeight, final UnitType unitType){
409-
return false;
409+
return true;
410410
}
411411
//TODO
412412
public boolean hasPower(final TilePosition position, final int tileWidth, final int tileHeight){
413-
return false;
413+
return true;
414414
}
415415
//TODO
416416
public boolean hasPower(final TilePosition position, final int tileWidth, final int tileHeight, final UnitType unitType){
417-
return false;
417+
return true;
418418
}
419419

420420
public boolean canBuildHere(final TilePosition position, final UnitType type, final Unit builder) {
@@ -442,9 +442,7 @@ public boolean canBuildHere(final TilePosition position, final UnitType type, fi
442442
if ( type.isRefinery() ) {
443443
for (final Unit g : getGeysers()) {
444444
if (g.getTilePosition().equals(lt)) {
445-
if (g.isVisible() && g.getType() != Resource_Vespene_Geyser)
446-
return false;
447-
return true;
445+
return !g.isVisible() || g.getType() == Resource_Vespene_Geyser;
448446
}
449447
}
450448
return false;
@@ -552,7 +550,7 @@ public boolean canMake(final UnitType type) {
552550

553551
//TODO
554552
public boolean canMake(final UnitType type, final Unit builder) {
555-
return false;
553+
return true;
556554
}
557555

558556
public boolean canResearch(final TechType type, final Unit unit) {
@@ -565,7 +563,7 @@ public boolean canResearch(final TechType type) {
565563

566564
//TODO
567565
public boolean canResearch(final TechType type, final Unit unit, final boolean checkCanIssueCommandType) {
568-
return false;
566+
return true;
569567
}
570568

571569
public boolean canUpgrade(final UpgradeType type, final Unit unit) {
@@ -578,7 +576,7 @@ public boolean canUpgrade(final UpgradeType type) {
578576

579577
//TODO
580578
public boolean canUpgrade(final UpgradeType type, final Unit unit, final boolean checkCanIssueCommandType) {
581-
return false;
579+
return true;
582580
}
583581

584582
public List<TilePosition> getStartLocations() {
@@ -1050,7 +1048,7 @@ public void setFrameSkip(int frameSkip) {
10501048

10511049
//TODO
10521050
public boolean hasPath(final Position source, final Position destination) {
1053-
return false;
1051+
return true;
10541052
}
10551053

10561054
// If you need these please implement (see addCommand and make a PR to the github repo)

0 commit comments

Comments
 (0)