All Implemented Interfaces:
Serializable

public class MsgResponseWinner extends MsgResponse implements Serializable
Response message containing the list of players, one of which has won the game. This message is sent when the last turn is over (or only a player is left and the reconnection timer expired)
See Also:
  • Field Details

    • players

      private final List<PlayerLobby> players
      The list of players of the game, one of which has won the game
  • Constructor Details

    • MsgResponseWinner

      public MsgResponseWinner(List<PlayerLobby> players)
      Builds a new response message with the given list of players
      Parameters:
      players - the list of players of the game, one of which has won the game
  • Method Details

    • getPlayer

      public List<PlayerLobby> getPlayer()
      Returns:
      the list of players of the game, one of which has won the game