public class CommandCenter extends BuildingImpl implements Mechanical, FlyingBuilding, TrainingFacility, ExtendibleByAddon, ResourceDepot
UnitImpl.TrainingSlot
probableConstructionStart
Modifier | Constructor and Description |
---|---|
protected |
CommandCenter(UnitType unitType,
int timeSpotted) |
Modifier and Type | Method and Description |
---|---|
boolean |
build(UnitType addon) |
boolean |
buildComsatStation() |
boolean |
buildNuclearSilo() |
boolean |
cancelAddon() |
boolean |
cancelTrain() |
boolean |
cancelTrain(int slot) |
boolean |
canTrain(UnitType type) |
Addon |
getAddon() |
ComsatStation |
getComsatStation()
Gets the Comsat Station addon, if there is one.
|
NuclearSilo |
getNuclearSilo()
Gets the Nuclear Silo addon, if there is one.
|
int |
getRemainingTrainTime() |
java.util.List<UnitImpl.TrainingSlot> |
getTrainingQueue() |
boolean |
isLifted() |
boolean |
isReadyForResources()
Returns true if workers can deliver resources.
|
boolean |
isTraining() |
boolean |
land(Position p) |
boolean |
lift() |
boolean |
move(Position p) |
boolean |
setRallyPoint(Position p) |
boolean |
setRallyPoint(Unit target) |
int |
supplyProvided() |
boolean |
train(UnitType type) |
boolean |
trainWorker() |
cancelConstruction, getBuildTime, getLastKnownDistance, getLastKnownDistance, getLastKnownDistance, getProbableConstructionStart, 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, tileWidth
cancelResearch, cancelUpgrade, canResearch, 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, toString, upgrade, width
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isBuildingAddon
cancelConstruction, getBuildTime, getLastKnownDistance, getLastKnownDistance, getLastKnownDistance, getProbableConstructionStart, getRemainingBuildTime
getArmor, 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, tileWidth
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
protected CommandCenter(UnitType unitType, int timeSpotted)
public NuclearSilo getNuclearSilo()
null
elsepublic ComsatStation getComsatStation()
null
elsepublic boolean isReadyForResources()
ResourceDepot
isReadyForResources
in interface ResourceDepot
public Addon getAddon()
getAddon
in interface ExtendibleByAddon
public boolean cancelAddon()
cancelAddon
in interface ExtendibleByAddon
public boolean buildComsatStation()
public boolean buildNuclearSilo()
public boolean build(UnitType addon)
build
in interface ExtendibleByAddon
public boolean trainWorker()
trainWorker
in interface ResourceDepot
public boolean canTrain(UnitType type)
canTrain
in interface TrainingFacility
canTrain
in class UnitImpl
public boolean train(UnitType type)
train
in interface TrainingFacility
train
in class UnitImpl
public boolean isLifted()
isLifted
in interface FlyingBuilding
public boolean lift()
lift
in interface FlyingBuilding
public boolean land(Position p)
land
in interface FlyingBuilding
public boolean move(Position p)
move
in interface FlyingBuilding
public boolean isTraining()
isTraining
in interface TrainingFacility
public java.util.List<UnitImpl.TrainingSlot> getTrainingQueue()
getTrainingQueue
in interface TrainingFacility
public boolean cancelTrain(int slot)
cancelTrain
in interface TrainingFacility
cancelTrain
in class UnitImpl
public boolean cancelTrain()
cancelTrain
in interface TrainingFacility
cancelTrain
in class UnitImpl
public boolean setRallyPoint(Position p)
setRallyPoint
in interface TrainingFacility
setRallyPoint
in class UnitImpl
public boolean setRallyPoint(Unit target)
setRallyPoint
in interface TrainingFacility
setRallyPoint
in class UnitImpl
public int getRemainingTrainTime()
getRemainingTrainTime
in interface TrainingFacility
public int supplyProvided()
supplyProvided
in interface SupplyProvider