Module AM37

Class MessageFromServerToClient

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 void callVisitor​(ClientMessageManagerVisitor visitor)  

    Methods inherited from class it.polimi.ingsw.network.message.Message

    getType, getUsername

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait