All Implemented Interfaces:
Serializable

public class MsgResponseNextTurn extends MsgResponse implements Serializable
Response message which is sent when the next turn starts, containing the player who has to play in the next turn
See Also:
  • Field Details

    • player

      private final PlayerLobby player
      The player that has to play in the next turn
  • Constructor Details

    • MsgResponseNextTurn

      public MsgResponseNextTurn(PlayerLobby player)
      Builds a new response message with the given player
      Parameters:
      player - the player that has to play in the next turn
  • Method Details

    • getPlayer

      public PlayerLobby getPlayer()
      Returns:
      the player that has to play in the next turn