public class Region
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getBoundsBottom() |
int |
getBoundsLeft()
Retrieves the set of neighbors that this region is connected to.
|
int |
getBoundsRight() |
int |
getBoundsTop() |
Position |
getCenter()
Retrieves the center of the region.
|
Region |
getClosestAccessibleRegion()
Retrieves the closest accessable neighbor region.
|
Region |
getClosestInaccessibleRegion()
Retrieves the closest inaccessable neighbor region.
|
int |
getDefensePriority()
Returns a value representing the strategic advantage of this region according to Broodwar.
|
int |
getDistance(Region other)
Retrieves the center-to-center distance between two regions.
|
int |
getID()
Returns the unique ID for this region assigned by Broodwar.
|
int |
getRegionGroupID()
Returns an ID for the body of land that this region belongs to.
|
boolean |
isHigherGround()
Returns true if this region belongs to strategic higher ground, assigned by Broodwar.
|
boolean |
isWalkable()
Returns true if the region can be walked on by ground units.
|
public int getID()
public int getRegionGroupID()
public Position getCenter()
public boolean isHigherGround()
public int getDefensePriority()
public boolean isWalkable()
public int getBoundsLeft()
public int getBoundsTop()
public int getBoundsRight()
public int getBoundsBottom()
public Region getClosestAccessibleRegion()
public Region getClosestInaccessibleRegion()
public int getDistance(Region other)