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
A class representing a
Message sent after an event regarding disconnection or reconnection scenarios.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA getter for the updated number of players after the event (in the lobby or game, depending on the application phase).A getter for the user which caused the event.
-
Constructor Details
-
ConnectionUpdate
-
-
Method Details
-
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
-