Class GameOverUpdate
java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.server.UserActionUpdate
it.polimi.ingsw.eriantys.messages.server.GameOverUpdate
- All Implemented Interfaces:
Serializable
A message of type
UserActionUpdate
sent by the server in order to notify the client of the end the game.
The condition is met under a number of circumstances based on the players' actions and the status of the Board
.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class it.polimi.ingsw.eriantys.messages.server.UserActionUpdate
getNextPlayer, setNextPlayer
-
Constructor Details
-
GameOverUpdate
-
-
Method Details
-
getWinner
A getter for the winner of the game.- Returns:
- the username of the winner, if existent, or a literal representing a tie.
-