public abstract class Worker extends MobileUnitImpl implements GroundAttacker
UnitImpl.TrainingSlot| Constructor and Description |
|---|
Worker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
build(TilePosition p,
UnitType type) |
boolean |
gather(Gatherable resource) |
boolean |
gather(Gatherable resource,
boolean shiftQueueCommand) |
UnitType |
getBuildType() |
Weapon |
getGroundWeapon() |
int |
getGroundWeaponCooldown() |
int |
getGroundWeaponDamage() |
int |
getGroundWeaponMaxCooldown() |
int |
getGroundWeaponMaxRange() |
int |
getMaxGroundHits() |
boolean |
isCarryingGas() |
boolean |
isCarryingMinerals() |
boolean |
isConstructing() |
boolean |
isGatheringGas() |
boolean |
isGatheringMinerals() |
boolean |
returnCargo() |
boolean |
returnCargo(boolean queued) |
attack, attack, attack, attack, follow, getAcidSporeCount, getSupplyRequired, getTargetPosition, getTargetUnit, getTopSpeed, getTransport, getTurnRadius, holdPosition, holdPosition, isBlind, isBraking, isDefenseMatrixed, isEnsnared, isFollowing, isHallucination, isHoldingPosition, isMoving, isParasited, isPatrolling, isPlagued, isStasised, isStuck, isUnderDarkSwarm, isUnderDisruptionWeb, isUnderStorm, move, move, patrol, patrol, stopgetAirWeaponCooldown, getAirWeaponDamage, getAirWeaponMaxCooldown, getAirWeaponMaxRange, getArmor, getBuildUnit, getDamageFrom, getDamageTo, getGasPrice, getGroundWeaponCooldown, getHitPoints, getInitialHitPoints, getLastCommand, getLastCommandFrame, getLastKnownHitPoints, getLastKnownPosition, getLastKnownTilePosition, getMaxAirHits, getMaxEnergy, getMineralPrice, getOrder, getOrderTarget, getOrderTargetPosition, getPlayer, getSecondaryOrder, getShields, getSightRange, getSpellCooldown, 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, waitattack, attack, getTargetUnitgetArmor, 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, widthpublic UnitType getBuildType()
public boolean isConstructing()
public boolean isGatheringMinerals()
public boolean isCarryingMinerals()
public boolean isCarryingGas()
public boolean isGatheringGas()
public boolean returnCargo()
public boolean returnCargo(boolean queued)
public boolean gather(Gatherable resource)
public boolean gather(Gatherable resource, boolean shiftQueueCommand)
public boolean build(TilePosition p, UnitType type)
public Weapon getGroundWeapon()
getGroundWeapon in interface GroundAttackerpublic int getGroundWeaponMaxRange()
getGroundWeaponMaxRange in interface GroundAttackergetGroundWeaponMaxRange in class PlayerUnitImplpublic int getGroundWeaponMaxCooldown()
getGroundWeaponMaxCooldown in interface GroundAttackergetGroundWeaponMaxCooldown in class PlayerUnitImplpublic int getGroundWeaponCooldown()
getGroundWeaponCooldown in interface GroundAttackerpublic int getGroundWeaponDamage()
getGroundWeaponDamage in interface GroundAttackergetGroundWeaponDamage in class PlayerUnitImplpublic int getMaxGroundHits()
getMaxGroundHits in interface GroundAttackergetMaxGroundHits in class PlayerUnitImpl