rl.leviathan.client.game
Class LeviathanGameClient

java.lang.Object
  extended by rl.client.game.GameClient
      extended by rl.leviathan.client.game.LeviathanGameClient
All Implemented Interfaces:
CommandProcessorListener

public class LeviathanGameClient
extends GameClient


Constructor Summary
LeviathanGameClient()
           
 
Method Summary
 void addCommanderListener(LeviathanCommanderListener l)
           
 void addListener(LeviathanGameListener l)
           
 void addTurnListener(LeviathanTurnListener l)
           
 void completeFiringDecleration()
           
 void completePointDefenceDecleration()
           
 void elementCompletedFiring(GameElementIdentifier element)
          Called when the unit has no more firing to declare
 void elementCompletedPointDefence(GameElementIdentifier element)
           
 int getTurnNumber()
           
 void orderFireAttempt(FiringAttemptPacket packet)
          Send the collection of firing orders to the server.
 void orderPointDefenceAttempt(PointDefenceAttemptPacket packet)
           
 void powerAllocation(CapitalShipPowerAllocation cspa)
           
 void powerAllocationComplete()
           
 void queryCommander()
           
 void queryTurnDetails()
           
 void queryValidFiringTargets(GameElementIdentifier element)
          Firing Weapons
 void queryValidPointDefenceTargets(GameElementIdentifier element)
          Firing Point Defence
 void removeCommanderListener(LeviathanCommanderListener l)
           
 void removeListener(LeviathanGameListener l)
           
 void removeTurnListener(LeviathanTurnListener l)
           
 void selectElement(GameElementIdentifier element)
           
 void selectMovementTeamOrder(java.lang.String team)
           
 
Methods inherited from class rl.client.game.GameClient
addBoardListener, addCombatUnitListener, addForceListener, addGameElementListener, addListener, addParticipantListener, addPlayerToGame, addScenarioListener, addVictoryConditionListener, areObserversAllowed, areRaceSelectionsAllowed, disconnected, elementPlacementComplete, getBoard, 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

LeviathanGameClient

public LeviathanGameClient()
Method Detail

getTurnNumber

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

addListener

public void addListener(LeviathanGameListener l)

removeListener

public void removeListener(LeviathanGameListener l)

addTurnListener

public void addTurnListener(LeviathanTurnListener l)

removeTurnListener

public void removeTurnListener(LeviathanTurnListener l)

addCommanderListener

public void addCommanderListener(LeviathanCommanderListener l)

removeCommanderListener

public void removeCommanderListener(LeviathanCommanderListener l)

queryCommander

public void queryCommander()

queryTurnDetails

public void queryTurnDetails()

selectMovementTeamOrder

public void selectMovementTeamOrder(java.lang.String team)

selectElement

public void selectElement(GameElementIdentifier element)

powerAllocation

public void powerAllocation(CapitalShipPowerAllocation cspa)

powerAllocationComplete

public void powerAllocationComplete()

queryValidFiringTargets

public void queryValidFiringTargets(GameElementIdentifier element)
Firing Weapons


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

queryValidPointDefenceTargets

public void queryValidPointDefenceTargets(GameElementIdentifier element)
Firing Point Defence


orderPointDefenceAttempt

public void orderPointDefenceAttempt(PointDefenceAttemptPacket packet)

elementCompletedPointDefence

public void elementCompletedPointDefence(GameElementIdentifier element)

completePointDefenceDecleration

public void completePointDefenceDecleration()