Package it.polimi.ingsw.Server.Model
Class Scoreboard
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
it.polimi.ingsw.Server.Model.Scoreboard
- All Implemented Interfaces:
ScoreBoardInterface
,Serializable
,Remote
Final Game's Scoreboard
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionScoreboard, made of Nickname (String) and score (int)Fields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the final Scoreboard sorted MapMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Field Details
-
scoreBoard
Scoreboard, made of Nickname (String) and score (int)
-
-
Constructor Details
-
Scoreboard
Scoreboard constructor. It sorts the Scoreboard unsorted Map directly.- Parameters:
scoreBoard
- unsorted final scoreboard- Throws:
RemoteException
- related to RMI
-
-
Method Details
-
getScoreBoard
Getter for the final Scoreboard sorted Map- Specified by:
getScoreBoard
in interfaceScoreBoardInterface
- Returns:
- final Scoreboard
-