cluedo.info
Class PlayerNotifyInfo

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

public class PlayerNotifyInfo
extends CluedoInfo

Instances of this class are transmitted by the server to all team mates in order to indicate whether the director of a session has accepted or rejected the join request of a player. The session director can also indicate that a team member should be removed from the session or that he wants to invite another player.

See Also:
CluedoPDU, SessionJoinRequestInfo, SessionJoinInfo, Serialized Form

Field Summary
 int playerId
          Id of the accpeted/rejected/removed player.
 int sessionId
          Id of the session the player wishes to join
 int state
          The answer of the session director to the request of the client.
 int teamId
          The team identity for this player.
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
PlayerNotifyInfo(int playerId, int sessionId, int teamId, 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
Id of the accpeted/rejected/removed player.

sessionId

public int sessionId
Id of the session the player wishes to join

teamId

public int teamId
The team identity for this player. Set to UNKNOWN if the player was rejected.

state

public int state
The answer of the session director to the request of the client. It can be either ACCEPTED, REJECTED, EXPELLED. INVITED.
Constructor Detail

PlayerNotifyInfo

public PlayerNotifyInfo(int playerId,
                        int sessionId,
                        int teamId,
                        int state)