public interface MapData
Modifier and Type | Method and Description |
---|---|
Position |
crop(Position position)
Returns a cropped version of the specified position if it is not inside the map.
|
TilePosition |
crop(TilePosition tilePosition)
Returns a cropped version of the specified position if it is not inside the map.
|
WalkPosition |
crop(WalkPosition walkPosition)
Returns a cropped version of the specified position if it is not inside the map.
|
Position |
getCenter()
Returns the center of the map in pixels.
|
Position |
getPixelSize()
Returns the size of the map in pixels.
|
Position |
getRandomPosition()
Returns a random position on the map in pixels.
|
java.util.List<TilePosition> |
getStartingLocations()
Returns the internal container of the starting Locations.
Note: these correspond to BWAPI::getStartLocations(). |
TilePosition |
getTileSize()
Returns the size of the map in tiles.
|
WalkPosition |
getWalkSize()
Returns the size of the map in walktiles.
|
boolean |
isValid(Position position)
Tests whether the specified position is inside the map.
|
boolean |
isValid(TilePosition tilePosition)
Tests whether the specified position is inside the map.
|
boolean |
isValid(WalkPosition walkPosition)
Tests whether the specified position is inside the map.
|
TilePosition getTileSize()
WalkPosition getWalkSize()
Position getPixelSize()
Position getCenter()
java.util.List<TilePosition> getStartingLocations()
boolean isValid(TilePosition tilePosition)
tilePosition
- the specified positionboolean isValid(WalkPosition walkPosition)
walkPosition
- the specified positionboolean isValid(Position position)
position
- the specified positionTilePosition crop(TilePosition tilePosition)
tilePosition
- the specified positionWalkPosition crop(WalkPosition walkPosition)
walkPosition
- the specified positionPosition crop(Position position)
position
- the specified positionPosition getRandomPosition()