rl.common.game.elements
Class ArtilleryBattery

java.lang.Object
  extended by rl.common.game.elements.GameElement
      extended by rl.common.game.elements.ArtilleryBattery
All Implemented Interfaces:
java.io.Serializable

public class ArtilleryBattery
extends GameElement

See Also:
Serialized Form

Nested Class Summary
 class ArtilleryBattery.AvailableAmmunition
           
 
Nested classes/interfaces inherited from class rl.common.game.elements.GameElement
GameElement.StatusPhase
 
Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
ArtilleryBattery()
           
 
Method Summary
 void AddAvailableAmmunition(ArtilleryBattery.AvailableAmmunition aa)
           
 void applyDamageSummary(GameElementDamageSummary geds)
           
 GameElementDamageSummary calculateStatus(int turn, GameElement.StatusPhase phase)
           
 ArtilleryBattery.AvailableAmmunition getAvailableAmmunition(int index)
           
 double getDamageSummary(int turn)
           
 java.lang.String getElementType()
           
 double getInternalDamageSummary(int turn)
           
 java.lang.String getName()
           
 int getShotsPerTurn()
           
 boolean hasInternalStructure()
           
 boolean isDestroyed(int turn)
           
 void RemoveAvailableAmmunition(ArtilleryBattery.AvailableAmmunition aa)
           
 void setShotsPerTurn(int shots)
           
 
Methods inherited from class rl.common.game.elements.GameElement
equals, getID, getIdentifier, getUnit, hashCode, setUnit, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ArtilleryBattery

public ArtilleryBattery()
Method Detail

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