public abstract class BuildingImpl extends PlayerUnitImpl implements Building
UnitImpl.TrainingSlot| Modifier and Type | Field and Description |
|---|---|
protected int |
probableConstructionStart |
| Modifier | Constructor and Description |
|---|---|
protected |
BuildingImpl(UnitType unitType,
int timeSpotted) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelConstruction() |
int |
getBuildTime() |
double |
getLastKnownDistance(Position position)
Returns the distance to given position from where this unit was located when it last was
visible.
|
int |
getLastKnownDistance(TilePosition tilePosition)
Returns the distance to given position from where this unit was located when it last was
visible.
|
double |
getLastKnownDistance(Unit target) |
int |
getProbableConstructionStart() |
int |
getRemainingBuildTime() |
getAirWeaponCooldown, getAirWeaponDamage, getAirWeaponMaxCooldown, getAirWeaponMaxRange, getArmor, getBuildUnit, getDamageFrom, getDamageTo, getGasPrice, getGroundWeaponCooldown, getGroundWeaponDamage, getGroundWeaponMaxCooldown, getGroundWeaponMaxRange, getHitPoints, getInitialHitPoints, getLastCommand, getLastCommandFrame, getLastKnownHitPoints, getLastKnownPosition, getLastKnownTilePosition, getMaxAirHits, getMaxEnergy, getMaxGroundHits, getMineralPrice, getOrder, getOrderTarget, getOrderTargetPosition, getPlayer, getSecondaryOrder, getShields, getSightRange, getSpellCooldown, getTargetUnit, getTopSpeed, getUnitStatCalculator, getVelocityX, getVelocityY, getWeakestUnitInRadius, isAccelerating, isAttackFrame, isAttacking, isBeingConstructed, isBeingHealed, isCloaked, isCompleted, isDetected, isDetector, isFlyer, isIdle, isInterruptible, isIrradiated, isLockedDown, isMaelstrommed, isPowered, isStartingAttack, isUnderAttack, maxHitPoints, maxShields, rightClick, rightClick, tileHeight, tileWidthcancelResearch, 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, waitgetArmor, getBuildUnit, getDamageFrom, getDamageTo, getGasPrice, getHitPoints, getInitialHitPoints, getLastCommand, getLastCommandFrame, getLastKnownHitPoints, getLastKnownPosition, getLastKnownTilePosition, getMineralPrice, getOrder, getOrderTarget, getOrderTargetPosition, getPlayer, getSecondaryOrder, getShields, getSightRange, getSpellCooldown, getVelocityX, getVelocityY, getWeakestUnitInRadius, isAccelerating, isAttackFrame, isAttacking, isBeingConstructed, isBeingHealed, isCloaked, isCompleted, isDetected, isDetector, isFlyer, isIdle, isInterruptible, isIrradiated, isLockedDown, isMaelstrommed, isPowered, isStartingAttack, isUnderAttack, maxHitPoints, maxShields, rightClick, rightClick, tileHeight, tileWidthexists, 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, widthprotected BuildingImpl(UnitType unitType, int timeSpotted)
public boolean cancelConstruction()
cancelConstruction in interface Buildingpublic int getBuildTime()
getBuildTime in interface Buildingpublic int getRemainingBuildTime()
getRemainingBuildTime in interface Buildingpublic int getProbableConstructionStart()
getProbableConstructionStart in interface Buildingpublic int getLastKnownDistance(TilePosition tilePosition)
getLastKnownDistance in interface BuildingtilePosition - tile position to measure distance topublic double getLastKnownDistance(Position position)
getLastKnownDistance in interface Buildingposition - position to measure distance topublic double getLastKnownDistance(Unit target)
getLastKnownDistance in interface Building