Class UserActionUpdate
java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.server.UserActionUpdate
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssistantCardUpdate,BoardUpdate,CharacterCardUpdate,GameOverUpdate,LastRoundUpdate,UserSelectionUpdate
A
Message sent by the server in order to notify a user's action.
The communication item is broadcast through the lobby or game (depending on the application phase).
The class represents a non-specific communication item which can be overridden for further object-oriented implementations.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA getter for the username of the next player who is eligible for an action.voidsetNextPlayer(String nextPlayer) A setter for the username of the next player who is eligible for an action.
-
Constructor Details
-
UserActionUpdate
public UserActionUpdate()
-
-
Method Details
-
setNextPlayer
A setter for the username of the next player who is eligible for an action.- Parameters:
nextPlayer- the username of the player
-
getNextPlayer
A getter for the username of the next player who is eligible for an action.- Returns:
- the username of the player
-