public interface PlayerUnit extends Unit
exists, getAngle, getBottom, getClosest, getDistance, getDistance, getDistance, getId, getInitiallySpotted, getInitialPosition, getInitialTilePosition, getKillCount, getLastSpotted, getLeft, getMiddle, getPosition, getRight, getSize, getTilePosition, getTop, getType, getUnitsInRadius, getX, getY, height, isFlying, isSelected, isVisible, width
PlayerUnit getBuildUnit()
<T extends PlayerUnit> T getWeakestUnitInRadius(int radius, java.util.Collection<T> units)
radius
- pixel radiusunits
- units to check for distanceboolean rightClick(Position position, boolean queued)
position
- the position to right-click toqueued
- true if command is queued, false elseboolean rightClick(Unit target, boolean queued)
target
- the unit to right-click toqueued
- true if command is queued, false elseboolean isCompleted()
int maxHitPoints()
int getHitPoints()
int getArmor()
int maxShields()
int getShields()
int getSpellCooldown()
Player getPlayer()
int getInitialHitPoints()
int getMineralPrice()
int getGasPrice()
int getLastKnownHitPoints()
Position getLastKnownPosition()
TilePosition getLastKnownTilePosition()
int getSightRange()
boolean isDetector()
boolean isDetected()
boolean isCloaked()
boolean isFlyer()
boolean isInterruptible()
int tileHeight()
tileHeight
in interface Unit
double getVelocityX()
double getVelocityY()
boolean isIdle()
boolean isAccelerating()
boolean isAttacking()
boolean isAttackFrame()
boolean isBeingConstructed()
boolean isBeingHealed()
boolean isIrradiated()
boolean isLockedDown()
boolean isMaelstrommed()
boolean isStartingAttack()
boolean isUnderAttack()
boolean isPowered()
int getDamageTo(PlayerUnit to)
int getDamageFrom(PlayerUnit from)
Order getOrder()
Unit getOrderTarget()
Position getOrderTargetPosition()
Order getSecondaryOrder()
int getLastCommandFrame()
UnitCommandType getLastCommand()