rl.centurion.game.elements
Class Building

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

public class Building
extends GameElement

See Also:
Serialized Form

Nested Class Summary
static class Building.ArmourState
           
 class Building.Elevation
           
 
Nested classes/interfaces inherited from class rl.common.game.elements.GameElement
GameElement.StatusPhase
 
Field Summary
(package private) static int COLUMNS
           
(package private) static int ROWS
           
(package private) static long serialVersionUID
           
 
Constructor Summary
Building(BuildingDesign design)
           
 
Method Summary
 void applyDamageSummary(GameElementDamageSummary geds)
           
 GameElementDamageSummary calculateStatus(int turn, GameElement.StatusPhase phase)
           
 boolean canFire()
           
 boolean canMove()
           
 double getDamageSummary(int turn)
           
 BuildingDesign getDesign()
           
 java.lang.String getElementType()
           
 Building.Elevation getElevation(int elevation)
           
 int getHeight()
           
 double getInternalDamageSummary(int turn)
           
 java.lang.String getName()
           
 boolean hasInternalStructure()
           
 boolean isDestroyed(int turn)
           
 boolean isGravElement()
           
 void setName(java.lang.String name)
           
 
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

ROWS

static final int ROWS
See Also:
Constant Field Values

COLUMNS

static final int COLUMNS
See Also:
Constant Field Values
Constructor Detail

Building

public Building(BuildingDesign design)
Method Detail

setName

public void setName(java.lang.String name)

getName

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

isGravElement

public boolean isGravElement()

getElementType

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

getDesign

public BuildingDesign getDesign()

getHeight

public int getHeight()

getElevation

public Building.Elevation getElevation(int elevation)

calculateStatus

public GameElementDamageSummary calculateStatus(int turn,
                                                GameElement.StatusPhase phase)
Specified by:
calculateStatus in class GameElement

applyDamageSummary

public void applyDamageSummary(GameElementDamageSummary geds)
Specified by:
applyDamageSummary in class GameElement

canMove

public boolean canMove()

canFire

public boolean canFire()

isDestroyed

public boolean isDestroyed(int turn)
Specified by:
isDestroyed 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