rl.common.game.elements
Class Vehicle.DamagedSystem

java.lang.Object
  extended by rl.common.game.elements.Vehicle.DamagedSystem
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Vehicle

public class Vehicle.DamagedSystem
extends java.lang.Object
implements java.io.Serializable

This class captures the information around a damaged internal system

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
Vehicle.DamagedSystem(int turnDamaged)
           
 
Method Summary
 void addBlocksDamaged(int turn, int blocks)
           
 int getBlocksDamaged()
           
 int getBlocksDamaged(int turn)
           
 int getFirstTurnDamaged()
           
 int getLastTurnDamaged()
           
 boolean isDamageResolved()
           
 void setDamageResolved()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

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

Vehicle.DamagedSystem

public Vehicle.DamagedSystem(int turnDamaged)
Method Detail

getFirstTurnDamaged

public int getFirstTurnDamaged()

getLastTurnDamaged

public int getLastTurnDamaged()

addBlocksDamaged

public void addBlocksDamaged(int turn,
                             int blocks)

getBlocksDamaged

public int getBlocksDamaged()

getBlocksDamaged

public int getBlocksDamaged(int turn)

isDamageResolved

public boolean isDamageResolved()

setDamageResolved

public void setDamageResolved()