public interface Unit extends java.lang.Comparable<Unit>
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
double |
getAngle() |
int |
getBottom() |
<T extends Unit> |
getClosest(java.util.Collection<T> group) |
double |
getDistance(int x,
int y) |
double |
getDistance(Position target) |
int |
getDistance(Unit target) |
int |
getId() |
int |
getInitiallySpotted()
Returns the frame number this unit was visible the first time.
|
Position |
getInitialPosition() |
TilePosition |
getInitialTilePosition() |
int |
getKillCount() |
int |
getLastSpotted()
Returns the frame number this unit was visible last.
|
int |
getLeft() |
Position |
getMiddle(Unit unit) |
Position |
getPosition() |
int |
getRight() |
UnitSizeType |
getSize() |
TilePosition |
getTilePosition() |
int |
getTop() |
UnitType |
getType()
Returns the type of this unit.
|
<T extends Unit> |
getUnitsInRadius(int radius,
java.util.Collection<T> group) |
int |
getX() |
int |
getY() |
int |
height() |
boolean |
isFlying() |
boolean |
isSelected() |
boolean |
isVisible() |
int |
tileHeight() |
int |
tileWidth() |
int |
width() |
int getKillCount()
int getLastSpotted()
int getInitiallySpotted()
int getId()
int getLeft()
int getTop()
int getRight()
int getBottom()
double getAngle()
<T extends Unit> T getClosest(java.util.Collection<T> group)
<T extends Unit> java.util.List<T> getUnitsInRadius(int radius, java.util.Collection<T> group)
int getX()
int getY()
int height()
int width()
int tileHeight()
int tileWidth()
TilePosition getTilePosition()
Position getPosition()
UnitSizeType getSize()
double getDistance(Position target)
double getDistance(int x, int y)
int getDistance(Unit target)
boolean exists()
UnitType getType()
UnitType.Resource_Vespene_Geyser
to UnitType.Zerg_Extractor
a new instance
will be created, and this instance will no longer be updated.Position getInitialPosition()
TilePosition getInitialTilePosition()
boolean isFlying()
boolean isVisible()
boolean isSelected()