rl.leviathan.game.elements
Class CapitalShipMissile
java.lang.Object
rl.common.game.elements.GameElement
rl.leviathan.game.elements.CapitalShipMissile
- All Implemented Interfaces:
- java.io.Serializable
public class CapitalShipMissile
- 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
CapitalShipMissile
public CapitalShipMissile(java.lang.String type,
int damage)
addDamageListener
public void addDamageListener(CapitalShipMissileDamageListener l)
removeDamageListener
public void removeDamageListener(CapitalShipMissileDamageListener l)
getType
public java.lang.String getType()
getDamage
public int getDamage()
getDamageRemaining
public int getDamageRemaining()
applyDamage
public void applyDamage(int damagePoints)
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
toString
public java.lang.String toString()
- Overrides:
toString in class GameElement