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 SummaryConstructors
- 
Method SummaryModifier 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- 
getSubjectA getter for the user which caused the event.- Returns:
- the subject's username
 
- 
getNumPlayerspublic 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
 
 
-