net.sf.colossus.server
Interface IServer

All Known Implementing Classes:
Server, SocketClientThread

public interface IServer

IServer is an interface for the client-accessible parts of Server.

Author:
David Ripton

Field Summary
static int CLIENT_VERSION
           
static int CLIENT_VERSION_CAN_RECONNECT
           
static int CLIENT_VERSION_UNDERSTANDS_PING
           
static int MINIMUM_CLIENT_VERSION
           
 
Method Summary
 void acquireAngel(Legion legion, CreatureType angelType)
           
 void applyCarries(BattleHex hex)
           
 void assignColor(PlayerColor color)
           
 void assignFirstMarker(java.lang.String markerId)
           
 void assignStrikePenalty(java.lang.String prompt)
           
 void checkServerConnection()
           
 void clientConfirmedCatchup()
           
 void concede(Legion legion)
           
 void doBattleMove(int tag, BattleHex hex)
           
 void doMove(Legion legion, MasterHex hex, EntrySide entrySide, boolean teleport, CreatureType teleportingLord)
           
 void doneWithBattleMoves()
           
 void doneWithEngagements()
           
 void doneWithMoves()
           
 void doneWithRecruits()
           
 void doneWithSplits()
           
 void doneWithStrikes()
           
 void doNotConcede(Legion legion)
           
 void doNotFlee(Legion legion)
           
 void doRecruit(Recruitment event)
           
 void doSplit(Legion parent, java.lang.String childMarker, java.util.List<CreatureType> creaturesToSplit)
          Executes a split of certain creatures from a legion.
 void doSummon(Summoning event)
          Handles a summon event
 void engage(MasterHex hex)
           
 void fight(MasterHex hex)
           
 void flee(Legion legion)
           
 void joinGame(java.lang.String playerName)
           
 void leaveCarryMode()
           
 void loadGame(java.lang.String filename)
           
 void makeProposal(java.lang.String proposalString)
           
 void mulligan()
           
 void newGame()
           
 void saveGame(java.lang.String filename)
           
 void sendDisconnect()
           
 void stopGame()
           
 void strike(int tag, BattleHex hex)
           
 void undoBattleMove(BattleHex hex)
           
 void undoMove(Legion legion)
           
 void undoRecruit(Legion legion)
           
 void undoSplit(Legion splitoff)
           
 void withdrawFromGame()
           
 

Field Detail

CLIENT_VERSION

static final int CLIENT_VERSION
See Also:
Constant Field Values

CLIENT_VERSION_UNDERSTANDS_PING

static final int CLIENT_VERSION_UNDERSTANDS_PING
See Also:
Constant Field Values

CLIENT_VERSION_CAN_RECONNECT

static final int CLIENT_VERSION_CAN_RECONNECT
See Also:
Constant Field Values

MINIMUM_CLIENT_VERSION

static final int MINIMUM_CLIENT_VERSION
See Also:
Constant Field Values
Method Detail

leaveCarryMode

void leaveCarryMode()

doneWithBattleMoves

void doneWithBattleMoves()

doneWithStrikes

void doneWithStrikes()

acquireAngel

void acquireAngel(Legion legion,
                  CreatureType angelType)

doSummon

void doSummon(Summoning event)
Handles a summon event

Parameters:
event - The summon event or null if summoning is not wanted.

doRecruit

void doRecruit(Recruitment event)

engage

void engage(MasterHex hex)

concede

void concede(Legion legion)

doNotConcede

void doNotConcede(Legion legion)

flee

void flee(Legion legion)

doNotFlee

void doNotFlee(Legion legion)

makeProposal

void makeProposal(java.lang.String proposalString)

fight

void fight(MasterHex hex)

doBattleMove

void doBattleMove(int tag,
                  BattleHex hex)

strike

void strike(int tag,
            BattleHex hex)

applyCarries

void applyCarries(BattleHex hex)

undoBattleMove

void undoBattleMove(BattleHex hex)

assignStrikePenalty

void assignStrikePenalty(java.lang.String prompt)

mulligan

void mulligan()

undoSplit

void undoSplit(Legion splitoff)

undoMove

void undoMove(Legion legion)

undoRecruit

void undoRecruit(Legion legion)

doneWithSplits

void doneWithSplits()

doneWithMoves

void doneWithMoves()

doneWithEngagements

void doneWithEngagements()

doneWithRecruits

void doneWithRecruits()

withdrawFromGame

void withdrawFromGame()

sendDisconnect

void sendDisconnect()

stopGame

void stopGame()

doSplit

void doSplit(Legion parent,
             java.lang.String childMarker,
             java.util.List<CreatureType> creaturesToSplit)
Executes a split of certain creatures from a legion.

Parameters:
parent - The legion to split the creatures out of.
childMarker - A marker for the new legion.
creaturesToSplit - The creatures to split out.

doMove

void doMove(Legion legion,
            MasterHex hex,
            EntrySide entrySide,
            boolean teleport,
            CreatureType teleportingLord)

assignColor

void assignColor(PlayerColor color)

assignFirstMarker

void assignFirstMarker(java.lang.String markerId)

newGame

void newGame()

loadGame

void loadGame(java.lang.String filename)

saveGame

void saveGame(java.lang.String filename)

checkServerConnection

void checkServerConnection()

clientConfirmedCatchup

void clientConfirmedCatchup()

joinGame

void joinGame(java.lang.String playerName)