rl.centurion.game
Class CenturionGameSide

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

public class CenturionGameSide
extends GameSide

This class represents the 'teams' playing the game of Centurion

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
CenturionGameSide()
           
CenturionGameSide(java.lang.String name)
          Constructs a side with a name other than the default
 
Method Summary
 Commander getCommander()
           
 java.util.Vector<Commander> getCommanders()
          Cycles through all of the units and collects every commander.
 int getCommandPointAdvantage()
           
 void setCommander(Commander commander)
          Sets the overall commander of the side.
 void setCommandPointAdvantage(int advantage)
          Sets the number of points this side enjoys a Command Point Advantage by
 
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

CenturionGameSide

public CenturionGameSide()

CenturionGameSide

public CenturionGameSide(java.lang.String name)
Constructs a side with a name other than the default

Parameters:
name - Name of the side
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 determines Command Point Advantage

Parameters:
commander -

getCommander

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

setCommandPointAdvantage

public void setCommandPointAdvantage(int advantage)
Sets the number of points this side enjoys a Command Point Advantage by

Parameters:
advantage -

getCommandPointAdvantage

public int getCommandPointAdvantage()
Returns:
This sides Command Point Advantage total

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