Package it.polimi.ingsw.eriantys.client
Interface ClientMessageHandler
- All Known Implementing Classes:
CommandLineInterface
,GraphicalUserInterface
,UserInterface
public interface ClientMessageHandler
This interface defines a method (with overloading) to handle all different types of messages
that can be received by the client.
It should be implemented by the different user interfaces to update the view component when notified by the server.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMessage
(Message message) Handles a genericMessage
.void
handleMessage
(Ping message) Handles aPing
message.void
handleMessage
(Accepted message) Handles aAccepted
message.void
handleMessage
(AcceptedJoinLobby message) Handles aAcceptedJoinLobby
message.void
handleMessage
(AcceptedLeaveLobby message) Handles aAcceptedLeaveLobby
message.void
handleMessage
(AcceptedUsername message) Handles aAcceptedUsername
message.void
handleMessage
(AssistantCardUpdate message) Handles aAssistantCardUpdate
message.void
handleMessage
(AvailableLobbies message) Handles aAvailableLobbies
message.void
handleMessage
(BoardUpdate message) Handles aBoardUpdate
message.void
handleMessage
(CharacterCardUpdate message) Handles aCharacterCardUpdate
message.void
handleMessage
(DisconnectionUpdate message) Handles aDisconnectionUpdate
message.void
handleMessage
(GameOverUpdate message) Handles aGameOverUpdate
message.void
handleMessage
(HelpResponse message) Handles aHelpResponse
message.void
handleMessage
(InitialBoardStatus message) Handles aInitialBoardStatus
message.void
handleMessage
(LastRoundUpdate message) Handles aLastRoundUpdate
message.void
handleMessage
(LobbyUpdate message) Handles aLobbyUpdate
message.void
handleMessage
(ReconnectionUpdate message) Handles aReconnectionUpdate
message.void
handleMessage
(Refused message) Handles aRefused
message.void
handleMessage
(RefusedReconnect message) Handles aRefusedReconnect
message.void
handleMessage
(UserSelectionUpdate message) Handles aUserSelectionUpdate
message.
-
Method Details
-
handleMessage
Handles a genericMessage
.- Parameters:
message
- the received message
-
handleMessage
Handles aAccepted
message.- Parameters:
message
- the received message
-
handleMessage
Handles aAcceptedUsername
message.- Parameters:
message
- the received message
-
handleMessage
Handles aAcceptedJoinLobby
message.- Parameters:
message
- the received message
-
handleMessage
Handles aAcceptedLeaveLobby
message.- Parameters:
message
- the received message
-
handleMessage
Handles aRefused
message.- Parameters:
message
- the received message
-
handleMessage
Handles aRefusedReconnect
message.- Parameters:
message
- the received message
-
handleMessage
Handles aHelpResponse
message.- Parameters:
message
- the received message
-
handleMessage
Handles aAvailableLobbies
message.- Parameters:
message
- the received message
-
handleMessage
Handles aLobbyUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aUserSelectionUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aInitialBoardStatus
message.- Parameters:
message
- the received message
-
handleMessage
Handles aAssistantCardUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aBoardUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aCharacterCardUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aLastRoundUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aGameOverUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aReconnectionUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aDisconnectionUpdate
message.- Parameters:
message
- the received message
-
handleMessage
Handles aPing
message.- Parameters:
message
- the received message
-