All Implemented Interfaces:
Serializable

public class GameOver extends FixedStatusResponse
This Response is generated when a lobby's game is over and is sent to the lobby's clients. Therefore, it is FixedStatusResponse
See Also:
  • Field Details

  • Constructor Details

    • GameOver

      public GameOver(List<String> winners)
      Create the response
      Parameters:
      winners - the winners of the game
  • Method Details

    • getWinners

      public List<String> getWinners()
      Get the winners of the game
      Returns:
      an Unmodifiable List containing the list of winners for the game