public class Hatchery extends BuildingImpl implements Organic, ResearchingFacility, ResourceDepot, Morphable
UnitImpl.TrainingSlot
ResearchingFacility.ResearchInProgress, ResearchingFacility.UpgradeInProgress
probableConstructionStart
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, 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
cancelTrain, 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, width
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 Hatchery(UnitType unitType, int timeSpotted)
public boolean isReadyForResources()
ResourceDepot
isReadyForResources
in interface ResourceDepot
public boolean trainWorker()
trainWorker
in interface ResourceDepot
public java.util.List<Larva> getLarva()
public boolean researchBurrowing()
public boolean isUpgrading()
isUpgrading
in interface ResearchingFacility
public boolean isResearching()
isResearching
in interface ResearchingFacility
public boolean cancelResearch()
cancelResearch
in interface ResearchingFacility
cancelResearch
in class UnitImpl
public boolean cancelUpgrade()
cancelUpgrade
in interface ResearchingFacility
cancelUpgrade
in class UnitImpl
public boolean morph(UnitType type)
Morphable
Unit.getId()
will be created.public boolean morph()
public boolean canResearch(TechType techType)
canResearch
in interface ResearchingFacility
canResearch
in class UnitImpl
public boolean canUpgrade(UpgradeType upgradeType)
canUpgrade
in interface ResearchingFacility
canUpgrade
in class UnitImpl
public boolean research(TechType techType)
research
in interface ResearchingFacility
research
in class UnitImpl
public boolean upgrade(UpgradeType upgradeType)
upgrade
in interface ResearchingFacility
upgrade
in class UnitImpl
public ResearchingFacility.UpgradeInProgress getUpgradeInProgress()
getUpgradeInProgress
in interface ResearchingFacility
getUpgradeInProgress
in class UnitImpl
public ResearchingFacility.ResearchInProgress getResearchInProgress()
getResearchInProgress
in interface ResearchingFacility
getResearchInProgress
in class UnitImpl
public int supplyProvided()
supplyProvided
in interface SupplyProvider