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

public abstract class UserActionUpdate extends Message
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 Details

    • UserActionUpdate

      public UserActionUpdate()
  • Method Details

    • setNextPlayer

      public void setNextPlayer(String nextPlayer)
      A setter for the username of the next player who is eligible for an action.
      Parameters:
      nextPlayer - the username of the player
    • getNextPlayer

      public String getNextPlayer()
      A getter for the username of the next player who is eligible for an action.
      Returns:
      the username of the player