rl.common.game.elements
Class ArtilleryBattery
java.lang.Object
rl.common.game.elements.GameElement
rl.common.game.elements.ArtilleryBattery
- All Implemented Interfaces:
- java.io.Serializable
public class ArtilleryBattery
- extends GameElement
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
ArtilleryBattery
public ArtilleryBattery()
getAvailableAmmunition
public ArtilleryBattery.AvailableAmmunition getAvailableAmmunition(int index)
AddAvailableAmmunition
public void AddAvailableAmmunition(ArtilleryBattery.AvailableAmmunition aa)
RemoveAvailableAmmunition
public void RemoveAvailableAmmunition(ArtilleryBattery.AvailableAmmunition aa)
getShotsPerTurn
public int getShotsPerTurn()
setShotsPerTurn
public void setShotsPerTurn(int shots)
applyDamageSummary
public void applyDamageSummary(GameElementDamageSummary geds)
- Specified by:
applyDamageSummary in class GameElement
calculateStatus
public GameElementDamageSummary calculateStatus(int turn,
GameElement.StatusPhase phase)
- Specified by:
calculateStatus in class GameElement
getDamageSummary
public double getDamageSummary(int turn)
- Specified by:
getDamageSummary in class GameElement
getElementType
public java.lang.String getElementType()
- Specified by:
getElementType in class GameElement
getInternalDamageSummary
public double getInternalDamageSummary(int turn)
- Specified by:
getInternalDamageSummary in class GameElement
getName
public java.lang.String getName()
- Specified by:
getName in class GameElement
hasInternalStructure
public boolean hasInternalStructure()
- Specified by:
hasInternalStructure in class GameElement
isDestroyed
public boolean isDestroyed(int turn)
- Specified by:
isDestroyed in class GameElement