public class Region extends CenteredObject
Modifier and Type | Method and Description |
---|---|
int |
getBoundsBottom()
Retrieves the approximate bottom boundary of the region.
|
int |
getBoundsLeft()
Retrieves the approximate left boundary of the region.
|
int |
getBoundsRight()
Retrieves the approximate right boundary of the region.
|
int |
getBoundsTop()
Retrieves the approximate top boundary of the region.
|
Position |
getCenter()
Retrieves the center of the region.
|
Region |
getClosestAccessibleRegion()
Retrieves the closest accessible neighbor region.
|
Region |
getClosestInaccessibleRegion()
Retrieves the closest inaccessible neighbor region.
|
int |
getDefensePriority()
Retrieves a value that represents the strategic advantage of this region relative to other regions.
|
int |
getDistance(Region other)
Retrieves the center-to-center distance between two regions.
|
int |
getID()
Retrieves a unique identifier for this region.
|
java.util.List<Region> |
getNeighbors()
Retrieves the set of neighbor Regions that this one is connected to.
|
int |
getRegionGroupID()
Retrieves a unique identifier for a group of regions that are all connected and accessible by each other.
|
java.util.List<Unit> |
getUnits()
Retrieves a Unitset containing all the units that are in this region.
|
boolean |
isAccessible()
Retrieves the state of accessibility of the region.
|
boolean |
isHigherGround()
Checks if this region is part of higher ground.
|
getPoint
getDistance, getDistance, getX, getY
public int getID()
public int getRegionGroupID()
public Position getCenter()
getCenter
in class CenteredObject
public boolean isHigherGround()
public int getDefensePriority()
public boolean isAccessible()
public java.util.List<Region> getNeighbors()
public int getBoundsLeft()
public int getBoundsTop()
public int getBoundsRight()
public int getBoundsBottom()
public Region getClosestAccessibleRegion()
public Region getClosestInaccessibleRegion()
public int getDistance(Region other)
public java.util.List<Unit> getUnits()