cluedo.info
Class CluedoInfo

java.lang.Object
  |
  +--cluedo.info.CluedoInfo
Direct Known Subclasses:
CardInfo, CardListInfo, ChatInfo, ChatRequestInfo, DiceInfo, DiceRequestInfo, DrawFinishedInfo, ErrorInfo, PlayerAddConfirmInfo, PlayerAddRequestInfo, PlayerDrawInfo, PlayerInfo, PlayerListInfo, PlayerListRequestInfo, PlayerLostInfo, PlayerMovedInfo, PlayerMoveRequestInfo, PlayerNotifyInfo, PlayerReAddRequestInfo, PlayerRemovedInfo, PlayerRemoveRequestInfo, PlayerRequestInfo, SessionAddRequestInfo, SessionChatInfo, SessionChatRequestInfo, SessionClosedInfo, SessionCloseRequestInfo, SessionInfo, SessionJoinInfo, SessionJoinRequestInfo, SessionListInfo, SessionListRequestInfo, SessionRemovedInfo, SessionRemoveRequestInfo, SessionRequestInfo, WhoWhereHowInfo, WinnerInfo

public class CluedoInfo
extends java.lang.Object
implements java.io.Serializable

Base class for all information classes. Instances of information classes are used for communication between client and server. This class defines some constants for the game states.

See Also:
CluedoPDU, Serialized Form

Field Summary
static int ACCEPTED
          Indicates that a player has been accepted.
static int CLOSED
          State of a closed session.
static int DIRECTOR
          Identifies players who are directors.
static int EXPELLED
          Indicates that a player has been expelled from a session.
static int INVITED
          Indicates that a player is invited for a session.
static int LOOSER
          Indicates that a player lost the game.
static int NUMPLAYERS
          The maximum number of player in a session.
static int OPENED
          State of a newly created session.
static int REJECTED
          Indicates that a player has been rejected.
static int REMOVED
          Used to indicate removed players, sessions etc.
static int SERVERID
          Server always has playerId = 0
static int TEAMMATE
          Identifies players who are NOT directors.
static int TERMINATED
          State of a terminated session.
static int UNKNOWN
          Used to indicate a currently unknown state of players, sessions etc.
static int WINNER
          Indicates that a player won the game.
 
Constructor Summary
CluedoInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVED

public static final int REMOVED
Used to indicate removed players, sessions etc.

UNKNOWN

public static final int UNKNOWN
Used to indicate a currently unknown state of players, sessions etc.

SERVERID

public static final int SERVERID
Server always has playerId = 0

DIRECTOR

public static final int DIRECTOR
Identifies players who are directors. @see PlayerInfo.state

TEAMMATE

public static final int TEAMMATE
Identifies players who are NOT directors. @see PlayerInfo.state

NUMPLAYERS

public static final int NUMPLAYERS
The maximum number of player in a session.

OPENED

public static final int OPENED
State of a newly created session. The game in this session has not yet started, i.e. players can still join the session.
See Also:
SessionInfo

CLOSED

public static final int CLOSED
State of a closed session. The game in this session has started, i.e. players cannot join the session anymore.
See Also:
SessionInfo

TERMINATED

public static final int TERMINATED
State of a terminated session. The game in this session is finished, i.e. players cannot join the session anymore.
See Also:
SessionInfo

ACCEPTED

public static final int ACCEPTED
Indicates that a player has been accepted. This means he is allowed to join the session.
See Also:
PlayerNotifyInfo

REJECTED

public static final int REJECTED
Indicates that a player has been rejected. This means he is not allowed to join the session.
See Also:
PlayerNotifyInfo

EXPELLED

public static final int EXPELLED
Indicates that a player has been expelled from a session. This means he does not join the session anymore.
See Also:
PlayerNotifyInfo

INVITED

public static final int INVITED
Indicates that a player is invited for a session.
See Also:
PlayerNotifyInfo

WINNER

public static final int WINNER
Indicates that a player won the game.
See Also:
WinnerInfo

LOOSER

public static final int LOOSER
Indicates that a player lost the game.
See Also:
WinnerInfo
Constructor Detail

CluedoInfo

public CluedoInfo()