public class Barracks extends BuildingImpl implements Mechanical, FlyingBuilding, TrainingFacility
UnitImpl.TrainingSlotprobableConstructionStart| Modifier | Constructor and Description |
|---|---|
protected |
Barracks(UnitType unitType,
int timeSpotted) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelTrain() |
boolean |
cancelTrain(int slot) |
boolean |
canTrain(UnitType type) |
int |
getRemainingTrainTime() |
java.util.List<UnitImpl.TrainingSlot> |
getTrainingQueue() |
boolean |
isLifted() |
boolean |
isTraining() |
boolean |
land(Position p) |
boolean |
lift() |
boolean |
move(Position p) |
boolean |
setRallyPoint(Position p) |
boolean |
setRallyPoint(Unit target) |
boolean |
train(UnitType type) |
boolean |
trainFirebat() |
boolean |
trainGhost() |
boolean |
trainMarine() |
boolean |
trainMedic() |
cancelConstruction, getBuildTime, getLastKnownDistance, getLastKnownDistance, getLastKnownDistance, getProbableConstructionStart, getRemainingBuildTimegetAirWeaponCooldown, 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, 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, widthclone, finalize, getClass, notify, notifyAll, wait, wait, waitcancelConstruction, getBuildTime, getLastKnownDistance, getLastKnownDistance, getLastKnownDistance, getProbableConstructionStart, getRemainingBuildTimegetArmor, 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 Barracks(UnitType unitType, int timeSpotted)
public boolean trainMarine()
public boolean trainMedic()
public boolean trainFirebat()
public boolean trainGhost()
public boolean train(UnitType type)
train in interface TrainingFacilitytrain in class UnitImplpublic boolean canTrain(UnitType type)
canTrain in interface TrainingFacilitycanTrain in class UnitImplpublic boolean lift()
lift in interface FlyingBuildingpublic boolean land(Position p)
land in interface FlyingBuildingpublic boolean move(Position p)
move in interface FlyingBuildingpublic boolean isLifted()
isLifted in interface FlyingBuildingpublic boolean isTraining()
isTraining in interface TrainingFacilitypublic java.util.List<UnitImpl.TrainingSlot> getTrainingQueue()
getTrainingQueue in interface TrainingFacilitypublic int getRemainingTrainTime()
getRemainingTrainTime in interface TrainingFacilitypublic boolean cancelTrain(int slot)
cancelTrain in interface TrainingFacilitycancelTrain in class UnitImplpublic boolean cancelTrain()
cancelTrain in interface TrainingFacilitycancelTrain in class UnitImplpublic boolean setRallyPoint(Position p)
setRallyPoint in interface TrainingFacilitysetRallyPoint in class UnitImplpublic boolean setRallyPoint(Unit target)
setRallyPoint in interface TrainingFacilitysetRallyPoint in class UnitImpl