Class ConnectionUpdate

java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.server.ConnectionUpdate
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DisconnectionUpdate, ReconnectionUpdate

public abstract class ConnectionUpdate extends Message
A class representing a Message sent after an event regarding disconnection or reconnection scenarios.
See Also:
  • Constructor Details

    • ConnectionUpdate

      public ConnectionUpdate(String subject, int numPlayers)
  • Method Details

    • getSubject

      public String getSubject()
      A getter for the user which caused the event.
      Returns:
      the subject's username
    • getNumPlayers

      public int getNumPlayers()
      A getter for the updated number of players after the event (in the lobby or game, depending on the application phase).
      Returns:
      the number of players