rl.leviathan.game
Class LeviathanGameSide

java.lang.Object
  extended by rl.common.game.GameSide
      extended by rl.leviathan.game.LeviathanGameSide
All Implemented Interfaces:
java.io.Serializable

public class LeviathanGameSide
extends GameSide

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
LeviathanGameSide()
           
LeviathanGameSide(java.lang.String name)
           
 
Method Summary
 Commander getCommander()
           
 java.util.Vector<Commander> getCommanders()
          Cycles through all of the units and collects every commander.
 void setCommander(Commander commander)
          Sets the overall commander of the side.
 
Methods inherited from class rl.common.game.GameSide
addObserver, addParticipant, addPlayer, addTransientElement, clearTransientElements, containsPlayer, getAllTransientElements, getCombatUnitCount, getCombatUnits, getCombatUnitsForPlayer, getDetail, getFactionForPlayer, getGameElements, getGameElementsForPlayer, getObserver, getPlayer, getPlayerForCombatUnit, getPlayerForElement, getPlayerForUnit, getPlayers, getPlayersForFaction, getUnits, getUnitsForPlayer, isObserver, isPlayer, loadFromTemplate, removeObserver, removeParticipant, removePlayer, removeTransientElement, unitsSelected
 
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

LeviathanGameSide

public LeviathanGameSide()

LeviathanGameSide

public LeviathanGameSide(java.lang.String name)
Method Detail

setCommander

public void setCommander(Commander commander)
Sets the overall commander of the side. In the case where a side has more than one commander the first player on the team will be asked to nominate which of the commanders is the overall commander. If, during the game the chosen commander is disabled then if more commanders are available another choice will have to be made as to which commander assumes control. The commanders rating affects initiative

Parameters:
commander -

getCommander

public Commander getCommander()
Returns:
The currently selected commander for the side

getCommanders

public java.util.Vector<Commander> getCommanders()
Cycles through all of the units and collects every commander. This list is then used to ask the players which commander should take overall command of the side

Returns:
a Vector of commanders