Package 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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acquireAngel
(Legion legion, CreatureType angelType) void
applyCarries
(BattleHex hex) void
assignColor
(PlayerColor color) void
assignFirstMarker
(String markerId) void
assignStrikePenalty
(String prompt) void
void
void
void
doBattleMove
(int tag, BattleHex hex) void
doMove
(Legion legion, MasterHex hex, EntrySide entrySide, boolean teleport, CreatureType teleportingLord) void
void
void
void
void
void
void
doNotConcede
(Legion legion) void
void
doRecruit
(Recruitment event) void
doSplit
(Legion parent, String childMarker, List<CreatureType> creaturesToSplit) Executes a split of certain creatures from a legion.void
Handles a summon eventvoid
void
void
void
void
void
void
makeProposal
(String proposalString) void
mulligan()
void
newGame()
void
void
void
stopGame()
void
void
undoBattleMove
(BattleHex hex) void
void
undoRecruit
(Legion legion) void
void
void
-
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()
-