Package it.polimi.ingsw.Server.Model
Class ScoreCard
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
it.polimi.ingsw.Server.Model.ScoreCard
- All Implemented Interfaces:
ScoreCardInterface
,Serializable
,Remote
- Direct Known Subclasses:
EndGameCard
Objective ScoreCards implementation
- See Also:
-
Field Summary
Fields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
-
Method Summary
Methods 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
-
value
@Expose final int valueScore Card's value
-
-
Constructor Details
-
ScoreCard
ScoreCard constructor- Parameters:
value
- sets the value to the given Integer- Throws:
RemoteException
- related to RMI
-
-
Method Details
-
getValue
public int getValue()- Specified by:
getValue
in interfaceScoreCardInterface
- Returns:
- value of the ScoreCard
-
getCopy
Refreshed copy, after server reload from file- Returns:
- new copy of the object
- Throws:
RemoteException
- related to RMI
-