cluedo.info
Class WinnerInfo

java.lang.Object
  |
  +--cluedo.info.CluedoInfo
        |
        +--cluedo.info.WinnerInfo

public class WinnerInfo
extends CluedoInfo

Instances of WinnerInfo are used to inform the team mates of a session about the winner or looser of a game. When a player has brought in an accusation the server will inform the team mates whether it was right (the player won the game) or wrong (the player has lost the game).

See Also:
CluedoPDU, AccusationRequestInfo, AccusationInfo, Serialized Form

Field Summary
 int playerId
          Which player has lost or won?
 int sessionId
          In which session does he play?
 int state
          Did he win or loose? This attribute can have either of the two values WINNER or LOOSER.
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
WinnerInfo(int playerId, int sessionId, int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

playerId

public int playerId
Which player has lost or won?

sessionId

public int sessionId
In which session does he play?

state

public int state
Did he win or loose? This attribute can have either of the two values WINNER or LOOSER.
Constructor Detail

WinnerInfo

public WinnerInfo(int playerId,
                  int sessionId,
                  int state)