rl.centurion.game.elements
Class Building
java.lang.Object
rl.common.game.elements.GameElement
rl.centurion.game.elements.Building
- All Implemented Interfaces:
- java.io.Serializable
public class Building
- 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
ROWS
static final int ROWS
- See Also:
- Constant Field Values
COLUMNS
static final int COLUMNS
- See Also:
- Constant Field Values
Building
public Building(BuildingDesign design)
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