use of bwapi.TilePosition in project BWJSAL by RobinsonMann.
the class ReservedMapTest method freeTiles_tilePosition_freeRectangle.
@Test
public void freeTiles_tilePosition_freeRectangle() {
final TilePosition tilePosition = new TilePosition(1, 2);
final int width = 2, height = 2;
this.target.reserveTiles(tilePosition, width, height);
assertThatRectangleReserved(tilePosition, width, height);
this.target.freeTiles(tilePosition, width, height);
assertThatRectangleNotReserved(tilePosition, width, height);
}
use of bwapi.TilePosition in project BWJSAL by RobinsonMann.
the class ReservedMapTest method reserveTiles_tilePosition_reserveSingleTile.
@Test
public void reserveTiles_tilePosition_reserveSingleTile() {
final TilePosition position = new TilePosition(0, 0);
assertThatTileNotReserved(position);
this.target.reserveTiles(position, UnitType.Terran_Command_Center);
assertThatOnlyTileReserved(position);
assertTileReservedType(position, UnitType.Terran_Command_Center);
}
Aggregations