Class Scoreboard

All Implemented Interfaces:
ScoreBoardInterface, Serializable, Remote

public class Scoreboard extends UnicastRemoteObject implements ScoreBoardInterface
Final Game's Scoreboard
See Also:
  • Field Details

    • scoreBoard

      @Expose private Map<String,Integer> scoreBoard
      Scoreboard, made of Nickname (String) and score (int)
  • Constructor Details

    • Scoreboard

      public Scoreboard(Map<String,Integer> scoreBoard) throws RemoteException
      Scoreboard constructor. It sorts the Scoreboard unsorted Map directly.
      Parameters:
      scoreBoard - unsorted final scoreboard
      Throws:
      RemoteException - related to RMI
  • Method Details