rl.centurion.client.game
Class CenturionGameClient

java.lang.Object
  extended by rl.client.game.GameClient
      extended by rl.centurion.client.game.CenturionGameClient
All Implemented Interfaces:
CommandProcessorListener

public class CenturionGameClient
extends GameClient


Constructor Summary
CenturionGameClient()
           
 
Method Summary
 void addCommanderListener(CenturionCommanderListener l)
           
 void addListener(CenturionGameListener l)
           
 void addTurnListener(CenturionTurnListener l)
           
 void allocateCommandPointsToInitiative(int commandPoints)
           
 void completeFiringDecleration()
           
 void completePaintingDecleration()
           
 void elementCompletedFiring(GameElementIdentifier element)
          Called when the unit has no more firing to declare
 HexBoard getBoard()
           
 int getCPA()
           
 int getTurnNumber()
           
 void notifyElementPainted(CenturionCommand c)
           
 void notifyPlayerPaintingAttempts(CenturionCommand c)
           
 void orderFireAttempt(FiringAttemptPacket packet)
          Send the collection of firing orders to the server.
 void orderPaintAttempt(GameElementIdentifier element, GameElementIdentifier target)
           
 void queryCommander()
           
 void queryTurnDetails()
           
 void queryValidFiringTargets(GameElementIdentifier element)
           
 void queryValidPaintingTargets(GameElementIdentifier element)
           
 void removeCommanderListener(CenturionCommanderListener l)
           
 void removeListener(CenturionGameListener l)
           
 void removeTurnListener(CenturionTurnListener l)
           
 void requestAvailableMaps()
           
 void selectCommander(Commander c)
           
 void selectMovementTeamOrder(java.lang.String team)
           
 void selectPlayerToFire(Player p)
           
 void selectPlayerToPaint(Player p)
           
 void selectUnit(UnitIdentifier unit)
           
 void sendOpportunityFireResponses(java.util.HashMap<GameElementIdentifier,java.util.HashMap<GameElementIdentifier,java.lang.Integer>> responses)
          Sends the collection of responses to the server This will be done as a part of the opportunity fire resolution done during the movement phase
 void sendPointDefenceAllocation(PointDefenceAllocation pda)
          Sends the completed PointDefenceAllocation object to the server.
 
Methods inherited from class rl.client.game.GameClient
addBoardListener, addCombatUnitListener, addForceListener, addGameElementListener, addListener, addParticipantListener, addPlayerToGame, addScenarioListener, addVictoryConditionListener, areObserversAllowed, areRaceSelectionsAllowed, disconnected, elementPlacementComplete, getConnection, getCurrentPhase, getElement, getElements, getLocationForGameElement, getName, getParticipant, getType, getUnits, isAdmin, isDeploymentPhase, isGamePhase, isObserver, isPlayer, leaveGame, loadScenario, participationSelected, placeGameElement, playerSetupComplete, postCommand, queryAvailableScenarios, queryAvailableUnits, queryCurrentParticipants, queryGameBoard, queryGamePhase, queryGameSides, queryObserversAllowed, queryPlayerCombatUnits, queryPointsList, queryRaceSelectionAllowed, querySelectedUnits, raceSelected, ready, registerHandler, removeBoardListener, removeCombatUnitListener, removeForceListener, removeGameElementListener, removeListener, removeParticipantListener, removeScenarioListener, removeVictoryConditionListener, setConnection, setName, setObserversAllowed, setRaceSelectionAllowed, setType, sideSelected, submitGameElementMovementOrders, unplaceGameElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CenturionGameClient

public CenturionGameClient()
Method Detail

getTurnNumber

public int getTurnNumber()
Specified by:
getTurnNumber in class GameClient

getCPA

public int getCPA()

addListener

public void addListener(CenturionGameListener l)

removeListener

public void removeListener(CenturionGameListener l)

addTurnListener

public void addTurnListener(CenturionTurnListener l)

removeTurnListener

public void removeTurnListener(CenturionTurnListener l)

addCommanderListener

public void addCommanderListener(CenturionCommanderListener l)

removeCommanderListener

public void removeCommanderListener(CenturionCommanderListener l)

requestAvailableMaps

public void requestAvailableMaps()

getBoard

public HexBoard getBoard()
Overrides:
getBoard in class GameClient

notifyElementPainted

public void notifyElementPainted(CenturionCommand c)

notifyPlayerPaintingAttempts

public void notifyPlayerPaintingAttempts(CenturionCommand c)

queryCommander

public void queryCommander()

queryTurnDetails

public void queryTurnDetails()

allocateCommandPointsToInitiative

public void allocateCommandPointsToInitiative(int commandPoints)

selectMovementTeamOrder

public void selectMovementTeamOrder(java.lang.String team)

selectUnit

public void selectUnit(UnitIdentifier unit)

selectCommander

public void selectCommander(Commander c)

selectPlayerToPaint

public void selectPlayerToPaint(Player p)

queryValidPaintingTargets

public void queryValidPaintingTargets(GameElementIdentifier element)

orderPaintAttempt

public void orderPaintAttempt(GameElementIdentifier element,
                              GameElementIdentifier target)

completePaintingDecleration

public void completePaintingDecleration()

selectPlayerToFire

public void selectPlayerToFire(Player p)

queryValidFiringTargets

public void queryValidFiringTargets(GameElementIdentifier element)

orderFireAttempt

public void orderFireAttempt(FiringAttemptPacket packet)
Send the collection of firing orders to the server. The packet contains all of the firing orders in firing sequence as well as the relevant source and target information

Parameters:
packet -

elementCompletedFiring

public void elementCompletedFiring(GameElementIdentifier element)
Called when the unit has no more firing to declare

Parameters:
element -

completeFiringDecleration

public void completeFiringDecleration()

sendPointDefenceAllocation

public void sendPointDefenceAllocation(PointDefenceAllocation pda)
Sends the completed PointDefenceAllocation object to the server. This will be don in response to the query for a point defence allocation as a part of the combat resolution phase


sendOpportunityFireResponses

public void sendOpportunityFireResponses(java.util.HashMap<GameElementIdentifier,java.util.HashMap<GameElementIdentifier,java.lang.Integer>> responses)
Sends the collection of responses to the server This will be done as a part of the opportunity fire resolution done during the movement phase

Parameters:
responses -