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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidacquireAngel(Legion legion, CreatureType angelType) voidapplyCarries(BattleHex hex) voidassignColor(PlayerColor color) voidassignFirstMarker(String markerId) voidassignStrikePenalty(String prompt) voidvoidvoidvoiddoBattleMove(int tag, BattleHex hex) voiddoMove(Legion legion, MasterHex hex, EntrySide entrySide, boolean teleport, CreatureType teleportingLord) voidvoidvoidvoidvoidvoidvoiddoNotConcede(Legion legion) voidvoiddoRecruit(Recruitment event) voiddoSplit(Legion parent, String childMarker, List<CreatureType> creaturesToSplit) Executes a split of certain creatures from a legion.voidHandles a summon eventvoidvoidvoidvoidvoidvoidvoidmakeProposal(String proposalString) voidmulligan()voidnewGame()voidvoidvoidstopGame()voidvoidundoBattleMove(BattleHex hex) voidvoidundoRecruit(Legion legion) voidvoidvoid
-
Field Details
-
CLIENT_VERSION_UNDERSTANDS_PING
static final int CLIENT_VERSION_UNDERSTANDS_PING- See Also:
-
CLIENT_VERSION_CAN_RECONNECT
static final int CLIENT_VERSION_CAN_RECONNECT- See Also:
-
CLIENT_VERSION_CAN_HANDLE_NAK
static final int CLIENT_VERSION_CAN_HANDLE_NAK- See Also:
-
CLIENT_VERSION_VARIANT_XML_OK
static final int CLIENT_VERSION_VARIANT_XML_OK- See Also:
-
CLIENT_VERSION
static final int CLIENT_VERSION- See Also:
-
MINIMUM_CLIENT_VERSION
static final int MINIMUM_CLIENT_VERSION- See Also:
-
-
Method Details
-
leaveCarryMode
void leaveCarryMode() -
doneWithBattleMoves
void doneWithBattleMoves() -
doneWithStrikes
void doneWithStrikes() -
acquireAngel
-
doSummon
Handles a summon event- Parameters:
event- The summon event or null if summoning is not wanted.
-
doRecruit
-
engage
-
concede
-
doNotConcede
-
flee
-
doNotFlee
-
makeProposal
-
fight
-
doBattleMove
-
strike
-
applyCarries
-
undoBattleMove
-
assignStrikePenalty
-
mulligan
void mulligan() -
undoSplit
-
undoMove
-
undoRecruit
-
doneWithSplits
void doneWithSplits() -
doneWithMoves
void doneWithMoves() -
doneWithEngagements
void doneWithEngagements() -
doneWithRecruits
void doneWithRecruits() -
withdrawFromGame
void withdrawFromGame() -
sendDisconnect
void sendDisconnect() -
stopGame
void stopGame() -
doSplit
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
-
assignFirstMarker
-
newGame
void newGame() -
loadGame
-
saveGame
-
checkServerConnection
void checkServerConnection() -
clientConfirmedCatchup
void clientConfirmedCatchup() -
joinGame
-
watchGame
void watchGame()
-