- All Known Implementing Classes:
MessageManagerParser
,VirtualClient
public interface ServerMessageManagerVisitor
Visitor interface for messages travelling from the client(s) to the server
Since in the server the messages can be handled in more than one point, the Visitors are declared as default methods running the cannotHandleMessage(Message) method, which implementation differs based on the class which has to handle the messages
-
Method Summary
-
Method Details
-
login
Visitor for LoginRequest- Parameters:
message
- the message to visit
-
joinLobby
Visitor for JoinLobbyRequest- Parameters:
message
- the message to visit
-
createLobby
Visitor for CreateLobbyRequest- Parameters:
message
- the message to visit
-
chooseInitialGods
Visitor for ChooseInitialGodsResponse- Parameters:
message
- the message to visit
-
chooseGod
Visitor for ChooseYourGodResponse- Parameters:
message
- the message to visit
-
chooseStartingPlayer
-
onMatchReloadResponse
Visitor for ChooseToReloadMatchResponse- Parameters:
message
- the message to visit
-
addWorkerOnBoard
Visitor for AddWorkerRequest- Parameters:
message
- the message to visit
-
selectWorker
Visitor for SelectWorkerRequest- Parameters:
message
- the message to visit
-
walkableCells
Visitor for WalkableCellsRequest- Parameters:
message
- the message to visit
-
buildableCells
Visitor for BuildableCellsRequest- Parameters:
message
- the message to visit
-
managePlayerMove
Visitor for PlayerMoveRequest- Parameters:
message
- the message to visit
-
selectCellToBuild
Visitor for SelectBuildingCellRequest- Parameters:
message
- the message to visit
-
managePlayerBuild
Visitor for PlayerBuildRequest- Parameters:
message
- the message to visit
-
endTurn
Visitor for EndTurnRequest- Parameters:
message
- the message to visit
-
cannotHandleMessage
Handles messages not supposed to be visited in the class it is implemented to- Parameters:
message
- the message to handle
-