rl.centurion.game.elements
Class MineField

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

public class MineField
extends GameElement

See Also:
Serialized Form

Nested Class Summary
 class MineField.Segment
           
static class MineField.SegmentStatus
           
static class MineField.Type
           
 
Nested classes/interfaces inherited from class rl.common.game.elements.GameElement
GameElement.StatusPhase
 
Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
MineField()
           
MineField(MineField.Type type)
           
 
Method Summary
 void applyDamageSummary(GameElementDamageSummary geds)
           
 GameElementDamageSummary calculateStatus(int turn, GameElement.StatusPhase phase)
           
 double getDamageSummary(int turn)
           
 java.lang.String getElementType()
           
 double getInternalDamageSummary(int turn)
           
 java.lang.String getName()
           
 MineField.Segment getSegment(int segment)
           
 MineField.Type getType()
           
 boolean hasInternalStructure()
           
 boolean isDestroyed(int turn)
           
 void setName(java.lang.String name)
           
 void setType(MineField.Type type)
           
 
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

MineField

public MineField()

MineField

public MineField(MineField.Type type)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class GameElement

setName

public void setName(java.lang.String name)

getElementType

public java.lang.String getElementType()
Specified by:
getElementType in class GameElement

getType

public MineField.Type getType()

setType

public void setType(MineField.Type type)

getSegment

public MineField.Segment getSegment(int segment)

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

hasInternalStructure

public boolean hasInternalStructure()
Specified by:
hasInternalStructure in class GameElement

getDamageSummary

public double getDamageSummary(int turn)
Specified by:
getDamageSummary in class GameElement

getInternalDamageSummary

public double getInternalDamageSummary(int turn)
Specified by:
getInternalDamageSummary in class GameElement

isDestroyed

public boolean isDestroyed(int turn)
Specified by:
isDestroyed in class GameElement