public abstract class PlayerUnitImpl extends UnitImpl implements PlayerUnit
UnitImpl.TrainingSlot| Constructor and Description |
|---|
PlayerUnitImpl() |
cancelResearch, cancelTrain, cancelTrain, cancelUpgrade, canResearch, canTrain, canUpgrade, compareTo, equals, exists, getAllUnits, getAngle, getBottom, getClosest, getCurrentFrame, getDamageEvaluator, getDistance, getDistance, getDistance, getId, getInitiallySpotted, getInitialPosition, getInitialTilePosition, getKillCount, getLastSpotted, getLeft, getMiddle, getPlayer, getPosition, getRallyPosition, getRallyUnit, getResearchInProgress, getRight, getSize, getTilePosition, getTop, getType, getUnit, getUnitsInRadius, getUpgradeInProgress, getX, getY, hashCode, height, isFlying, isSelected, issueCommand, isVisible, research, setRallyPoint, setRallyPoint, toString, train, upgrade, widthclone, finalize, getClass, notify, notifyAll, wait, wait, waitexists, 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, widthpublic PlayerUnit getBuildUnit()
getBuildUnit in interface PlayerUnitprotected Unit getTargetUnit()
public <T extends PlayerUnit> T getWeakestUnitInRadius(int radius, java.util.Collection<T> units)
getWeakestUnitInRadius in interface PlayerUnitradius - pixel radiusunits - units to check for distancepublic boolean rightClick(Position position, boolean queued)
rightClick in interface PlayerUnitposition - the position to right-click toqueued - true if command is queued, false elsepublic boolean rightClick(Unit target, boolean queued)
rightClick in interface PlayerUnittarget - the unit to right-click toqueued - true if command is queued, false elsepublic boolean isCompleted()
isCompleted in interface PlayerUnitpublic int maxHitPoints()
maxHitPoints in interface PlayerUnitpublic int getHitPoints()
getHitPoints in interface PlayerUnitpublic UnitStatCalculator getUnitStatCalculator()
protected int getMaxEnergy()
public int getArmor()
getArmor in interface PlayerUnitpublic int maxShields()
maxShields in interface PlayerUnitpublic int getShields()
getShields in interface PlayerUnitpublic int getSpellCooldown()
getSpellCooldown in interface PlayerUnitpublic Player getPlayer()
getPlayer in interface PlayerUnitgetPlayer in class UnitImplpublic int getInitialHitPoints()
getInitialHitPoints in interface PlayerUnitpublic int getMineralPrice()
getMineralPrice in interface PlayerUnitpublic int getGasPrice()
getGasPrice in interface PlayerUnitpublic int getLastKnownHitPoints()
getLastKnownHitPoints in interface PlayerUnitpublic Position getLastKnownPosition()
getLastKnownPosition in interface PlayerUnitpublic TilePosition getLastKnownTilePosition()
getLastKnownTilePosition in interface PlayerUnitpublic int getSightRange()
getSightRange in interface PlayerUnitpublic boolean isDetector()
isDetector in interface PlayerUnitpublic boolean isDetected()
isDetected in interface PlayerUnitpublic boolean isCloaked()
isCloaked in interface PlayerUnitpublic boolean isFlyer()
isFlyer in interface PlayerUnitpublic boolean isInterruptible()
isInterruptible in interface PlayerUnitpublic int tileWidth()
public int tileHeight()
tileHeight in interface PlayerUnittileHeight in interface UnittileHeight in class UnitImplprotected double getTopSpeed()
protected int getMaxGroundHits()
protected int getMaxAirHits()
public double getVelocityX()
getVelocityX in interface PlayerUnitpublic double getVelocityY()
getVelocityY in interface PlayerUnitpublic boolean isIdle()
isIdle in interface PlayerUnitpublic boolean isAccelerating()
isAccelerating in interface PlayerUnitpublic boolean isAttacking()
isAttacking in interface PlayerUnitpublic boolean isAttackFrame()
isAttackFrame in interface PlayerUnitpublic boolean isBeingConstructed()
isBeingConstructed in interface PlayerUnitpublic boolean isBeingHealed()
isBeingHealed in interface PlayerUnitpublic boolean isIrradiated()
isIrradiated in interface PlayerUnitpublic boolean isLockedDown()
isLockedDown in interface PlayerUnitpublic boolean isMaelstrommed()
isMaelstrommed in interface PlayerUnitpublic boolean isStartingAttack()
isStartingAttack in interface PlayerUnitpublic boolean isUnderAttack()
isUnderAttack in interface PlayerUnitpublic boolean isPowered()
isPowered in interface PlayerUnitprotected int getGroundWeaponMaxRange()
protected int getGroundWeaponMaxCooldown()
protected int getGroundWeaponCooldown(GroundAttacker unit)
protected int getGroundWeaponDamage()
protected int getAirWeaponMaxRange()
protected int getAirWeaponMaxCooldown()
protected int getAirWeaponCooldown(AirAttacker unit)
protected int getAirWeaponDamage()
public int getDamageTo(PlayerUnit to)
getDamageTo in interface PlayerUnitpublic int getDamageFrom(PlayerUnit from)
getDamageFrom in interface PlayerUnitpublic Order getOrder()
getOrder in interface PlayerUnitgetOrder in class UnitImplpublic Unit getOrderTarget()
getOrderTarget in interface PlayerUnitgetOrderTarget in class UnitImplpublic Position getOrderTargetPosition()
getOrderTargetPosition in interface PlayerUnitgetOrderTargetPosition in class UnitImplpublic Order getSecondaryOrder()
getSecondaryOrder in interface PlayerUnitgetSecondaryOrder in class UnitImplpublic int getLastCommandFrame()
getLastCommandFrame in interface PlayerUnitpublic UnitCommandType getLastCommand()
getLastCommand in interface PlayerUnit