public class PhotonCannon extends BuildingImpl implements Detector, Mechanical, GroundAttacker, AirAttacker
UnitImpl.TrainingSlot
probableConstructionStart
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, getRemainingBuildTime
getAirWeaponCooldown, 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, tileWidth
cancelResearch, 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, width
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 PhotonCannon(UnitType unitType, int timeSpotted)
public boolean attack(Unit target, boolean queued)
public Weapon getGroundWeapon()
getGroundWeapon
in interface GroundAttacker
public Weapon getAirWeapon()
getAirWeapon
in interface AirAttacker
public Unit getTargetUnit()
getTargetUnit
in interface Attacker
getTargetUnit
in class PlayerUnitImpl
public int getMaxGroundHits()
getMaxGroundHits
in interface GroundAttacker
getMaxGroundHits
in class PlayerUnitImpl
public int getMaxAirHits()
getMaxAirHits
in interface AirAttacker
getMaxAirHits
in class PlayerUnitImpl
public int getGroundWeaponMaxRange()
getGroundWeaponMaxRange
in interface GroundAttacker
getGroundWeaponMaxRange
in class PlayerUnitImpl
public int getGroundWeaponMaxCooldown()
getGroundWeaponMaxCooldown
in interface GroundAttacker
getGroundWeaponMaxCooldown
in class PlayerUnitImpl
public int getGroundWeaponCooldown()
getGroundWeaponCooldown
in interface GroundAttacker
public int getGroundWeaponDamage()
getGroundWeaponDamage
in interface GroundAttacker
getGroundWeaponDamage
in class PlayerUnitImpl
public int getAirWeaponMaxRange()
getAirWeaponMaxRange
in interface AirAttacker
getAirWeaponMaxRange
in class PlayerUnitImpl
public int getAirWeaponMaxCooldown()
getAirWeaponMaxCooldown
in interface AirAttacker
getAirWeaponMaxCooldown
in class PlayerUnitImpl
public int getAirWeaponCooldown()
getAirWeaponCooldown
in interface AirAttacker
public int getAirWeaponDamage()
getAirWeaponDamage
in interface AirAttacker
getAirWeaponDamage
in class PlayerUnitImpl