Package net.sf.colossus.server
Interface IServer
-
- All Known Implementing Classes:
Server,SocketClientThread
public interface IServerIServer is an interface for the client-accessible parts of Server.- Author:
- David Ripton
-
-
Field Summary
Fields Modifier and Type Field Description static intCLIENT_VERSIONstatic intCLIENT_VERSION_CAN_HANDLE_NAKstatic intCLIENT_VERSION_CAN_RECONNECTstatic intCLIENT_VERSION_UNDERSTANDS_PINGstatic intCLIENT_VERSION_VARIANT_XML_OKstatic intMINIMUM_CLIENT_VERSION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacquireAngel(Legion legion, CreatureType angelType)voidapplyCarries(BattleHex hex)voidassignColor(PlayerColor color)voidassignFirstMarker(java.lang.String markerId)voidassignStrikePenalty(java.lang.String prompt)voidcheckServerConnection()voidclientConfirmedCatchup()voidconcede(Legion legion)voiddoBattleMove(int tag, BattleHex hex)voiddoMove(Legion legion, MasterHex hex, EntrySide entrySide, boolean teleport, CreatureType teleportingLord)voiddoneWithBattleMoves()voiddoneWithEngagements()voiddoneWithMoves()voiddoneWithRecruits()voiddoneWithSplits()voiddoneWithStrikes()voiddoNotConcede(Legion legion)voiddoNotFlee(Legion legion)voiddoRecruit(Recruitment event)voiddoSplit(Legion parent, java.lang.String childMarker, java.util.List<CreatureType> creaturesToSplit)Executes a split of certain creatures from a legion.voiddoSummon(Summoning event)Handles a summon eventvoidengage(MasterHex hex)voidfight(MasterHex hex)voidflee(Legion legion)voidjoinGame(java.lang.String playerName)voidleaveCarryMode()voidloadGame(java.lang.String filename)voidmakeProposal(java.lang.String proposalString)voidmulligan()voidnewGame()voidsaveGame(java.lang.String filename)voidsendDisconnect()voidstopGame()voidstrike(int tag, BattleHex hex)voidundoBattleMove(BattleHex hex)voidundoMove(Legion legion)voidundoRecruit(Legion legion)voidundoSplit(Legion splitoff)voidwatchGame()voidwithdrawFromGame()
-
-
-
Field Detail
-
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
-
CLIENT_VERSION_CAN_HANDLE_NAK
static final int CLIENT_VERSION_CAN_HANDLE_NAK
- See Also:
- Constant Field Values
-
CLIENT_VERSION_VARIANT_XML_OK
static final int CLIENT_VERSION_VARIANT_XML_OK
- See Also:
- Constant Field Values
-
CLIENT_VERSION
static final int CLIENT_VERSION
- 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)
-
watchGame
void watchGame()
-
-