java.lang.Object
it.polimi.ingsw.network.message.Message
it.polimi.ingsw.network.message.MessageFromServerToClient
- Direct Known Subclasses:
BuildableCellsResponse,ChooseInitialGodsRequest,ChooseStartingPlayerRequest,ChooseToReloadMatchRequest,ChooseWorkerPositionRequest,ChooseYourGodRequest,ChosenGodsEvent,EndTurnEvent,GameBoardUpdate,GameStartEvent,LobbyCreatedEvent,LoginResponse,MovedToWaitingRoomResponse,PlayerBuildEvent,PlayerMoveEvent,PlayerRemovedEvent,PossibleBuildingBlockResponse,UserJoinedLobbyEvent,WalkableCellsResponse,WinnerDeclaredEvent,WorkerAddedEvent,WorkerSelectedResponse
public abstract class MessageFromServerToClient extends Message
Abstract Message type
Generalizes all the messages travelling from the server to the clients;
Defines the abstract method callVisitor, to implement the
Visitor pattern.
- See Also:
NetworkHandler
-
Constructor Summary
Constructors Constructor Description MessageFromServerToClient(java.lang.String username, Type type)Message constructor -
Method Summary
Modifier and Type Method Description abstract voidcallVisitor(ClientMessageManagerVisitor visitor)
-
Constructor Details
-
MessageFromServerToClient
Message constructor- Parameters:
username- the sender's usernametype- the message type
-
-
Method Details