public class Hatchery extends BuildingImpl implements Organic, ResearchingFacility, ResourceDepot, Morphable
UnitImpl.TrainingSlotResearchingFacility.ResearchInProgress, ResearchingFacility.UpgradeInProgressprobableConstructionStart| Modifier | Constructor and Description |
|---|---|
protected |
Hatchery(UnitType unitType,
int timeSpotted) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelResearch() |
boolean |
cancelUpgrade() |
boolean |
canResearch(TechType techType) |
boolean |
canUpgrade(UpgradeType upgradeType) |
java.util.List<Larva> |
getLarva()
Retrieves a list of larvae present at this hatchery.
|
ResearchingFacility.ResearchInProgress |
getResearchInProgress() |
ResearchingFacility.UpgradeInProgress |
getUpgradeInProgress() |
boolean |
isReadyForResources()
Returns true if workers can deliver resources.
|
boolean |
isResearching() |
boolean |
isUpgrading() |
boolean |
morph() |
boolean |
morph(UnitType type)
Morphs this unit into the given unit type.
|
boolean |
research(TechType techType) |
boolean |
researchBurrowing() |
int |
supplyProvided() |
boolean |
trainWorker() |
boolean |
upgrade(UpgradeType upgradeType) |
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, tileWidthcancelTrain, cancelTrain, canTrain, compareTo, equals, exists, getAllUnits, getAngle, getBottom, getClosest, getCurrentFrame, getDamageEvaluator, getDistance, getDistance, getDistance, getId, getInitiallySpotted, getInitialPosition, getInitialTilePosition, getKillCount, getLastSpotted, getLeft, getMiddle, getPlayer, getPosition, getRallyPosition, getRallyUnit, getRight, getSize, getTilePosition, getTop, getType, getUnit, getUnitsInRadius, getX, getY, hashCode, height, isFlying, isSelected, issueCommand, isVisible, setRallyPoint, setRallyPoint, toString, train, 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 Hatchery(UnitType unitType, int timeSpotted)
public boolean isReadyForResources()
ResourceDepotisReadyForResources in interface ResourceDepotpublic boolean trainWorker()
trainWorker in interface ResourceDepotpublic java.util.List<Larva> getLarva()
public boolean researchBurrowing()
public boolean isUpgrading()
isUpgrading in interface ResearchingFacilitypublic boolean isResearching()
isResearching in interface ResearchingFacilitypublic boolean cancelResearch()
cancelResearch in interface ResearchingFacilitycancelResearch in class UnitImplpublic boolean cancelUpgrade()
cancelUpgrade in interface ResearchingFacilitycancelUpgrade in class UnitImplpublic boolean morph(UnitType type)
MorphableUnit.getId() will be created.public boolean morph()
public boolean canResearch(TechType techType)
canResearch in interface ResearchingFacilitycanResearch in class UnitImplpublic boolean canUpgrade(UpgradeType upgradeType)
canUpgrade in interface ResearchingFacilitycanUpgrade in class UnitImplpublic boolean research(TechType techType)
research in interface ResearchingFacilityresearch in class UnitImplpublic boolean upgrade(UpgradeType upgradeType)
upgrade in interface ResearchingFacilityupgrade in class UnitImplpublic ResearchingFacility.UpgradeInProgress getUpgradeInProgress()
getUpgradeInProgress in interface ResearchingFacilitygetUpgradeInProgress in class UnitImplpublic ResearchingFacility.ResearchInProgress getResearchInProgress()
getResearchInProgress in interface ResearchingFacilitygetResearchInProgress in class UnitImplpublic int supplyProvided()
supplyProvided in interface SupplyProvider