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