rl.leviathan.game.elements
Class FighterUnit

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

public class FighterUnit
extends GameElement

See Also:
Serialized Form

Nested Class Summary
 class FighterUnit.Armour
           
static class FighterUnit.ArmourStatus
           
static class FighterUnit.Type
           
 
Nested classes/interfaces inherited from class rl.common.game.elements.GameElement
GameElement.StatusPhase
 
Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
FighterUnit(Faction faction, FighterUnit.Type type)
           
 
Method Summary
 void addFighters(LeviathanFighterDesign design, int fighters)
           
 void applyDamageSummary(GameElementDamageSummary geds)
           
 GameElementDamageSummary calculateStatus(int turn, GameElement.StatusPhase phase)
           
 boolean canMove(int turn)
           
 void completedAddingFighters()
           
 java.lang.String dumpArmourBlock()
           
 java.lang.String dumpProfile()
           
 java.lang.String dumpStatLine()
           
 int getArmour()
           
 int getCRA()
           
 double getDamageSummary(int turn)
           
 java.lang.String getElementType()
           
 Faction getFaction()
           
 double getInternalDamageSummary(int turn)
           
 int getLRA()
           
 int getMAV()
           
 int getMovement()
           
 java.lang.String getName()
           
 java.lang.String getProfileHeading()
           
 java.lang.String getStatLineHeading()
           
 FighterUnit.Type getType()
           
 boolean hasInternalStructure()
           
 boolean isDestroyed(int turn)
           
 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
Constructor Detail

FighterUnit

public FighterUnit(Faction faction,
                   FighterUnit.Type type)
Method Detail

getFaction

public Faction getFaction()

getType

public FighterUnit.Type getType()

getName

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

setName

public void setName(java.lang.String name)

getArmour

public int getArmour()

getCRA

public int getCRA()

getLRA

public int getLRA()

getMAV

public int getMAV()

getMovement

public int getMovement()

addFighters

public void addFighters(LeviathanFighterDesign design,
                        int fighters)

completedAddingFighters

public void completedAddingFighters()

getElementType

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

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(int turn)

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

dumpArmourBlock

public java.lang.String dumpArmourBlock()

getProfileHeading

public java.lang.String getProfileHeading()

dumpProfile

public java.lang.String dumpProfile()

getStatLineHeading

public java.lang.String getStatLineHeading()

dumpStatLine

public java.lang.String dumpStatLine()