rl.centurion.client.game
Class CenturionGameClient
java.lang.Object
rl.client.game.GameClient
rl.centurion.client.game.CenturionGameClient
- All Implemented Interfaces:
- CommandProcessorListener
public class CenturionGameClient
- extends GameClient
| 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 |
CenturionGameClient
public CenturionGameClient()
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 -