public class PhotonCannon extends BuildingImpl implements Detector, Mechanical, GroundAttacker, AirAttacker
UnitImpl.TrainingSlotprobableConstructionStart| Modifier | Constructor and Description |
|---|---|
protected |
PhotonCannon(UnitType unitType,
int timeSpotted) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(Unit target) |
boolean |
attack(Unit target,
boolean queued) |
Weapon |
getAirWeapon() |
int |
getAirWeaponCooldown() |
int |
getAirWeaponDamage() |
int |
getAirWeaponMaxCooldown() |
int |
getAirWeaponMaxRange() |
Weapon |
getGroundWeapon() |
int |
getGroundWeaponCooldown() |
int |
getGroundWeaponDamage() |
int |
getGroundWeaponMaxCooldown() |
int |
getGroundWeaponMaxRange() |
int |
getMaxAirHits() |
int |
getMaxGroundHits() |
Unit |
getTargetUnit() |
cancelConstruction, getBuildTime, getLastKnownDistance, getLastKnownDistance, getLastKnownDistance, getProbableConstructionStart, getRemainingBuildTimegetAirWeaponCooldown, getArmor, getBuildUnit, getDamageFrom, getDamageTo, getGasPrice, getGroundWeaponCooldown, getHitPoints, getInitialHitPoints, getLastCommand, getLastCommandFrame, getLastKnownHitPoints, getLastKnownPosition, getLastKnownTilePosition, getMaxEnergy, getMineralPrice, getOrder, getOrderTarget, getOrderTargetPosition, getPlayer, getSecondaryOrder, getShields, getSightRange, getSpellCooldown, 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, 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, waitgetArmor, 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 PhotonCannon(UnitType unitType, int timeSpotted)
public boolean attack(Unit target, boolean queued)
public Weapon getGroundWeapon()
getGroundWeapon in interface GroundAttackerpublic Weapon getAirWeapon()
getAirWeapon in interface AirAttackerpublic Unit getTargetUnit()
getTargetUnit in interface AttackergetTargetUnit in class PlayerUnitImplpublic int getMaxGroundHits()
getMaxGroundHits in interface GroundAttackergetMaxGroundHits in class PlayerUnitImplpublic int getMaxAirHits()
getMaxAirHits in interface AirAttackergetMaxAirHits in class PlayerUnitImplpublic 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 getAirWeaponMaxRange()
getAirWeaponMaxRange in interface AirAttackergetAirWeaponMaxRange in class PlayerUnitImplpublic int getAirWeaponMaxCooldown()
getAirWeaponMaxCooldown in interface AirAttackergetAirWeaponMaxCooldown in class PlayerUnitImplpublic int getAirWeaponCooldown()
getAirWeaponCooldown in interface AirAttackerpublic int getAirWeaponDamage()
getAirWeaponDamage in interface AirAttackergetAirWeaponDamage in class PlayerUnitImpl