Serialized Form

Class cluedo.info.AccusationInfo implements Serializable

Serialized Fields

accuserId

int accuserId
The playerId of the player who indicates the accusation.


Class cluedo.info.AccusationRequestInfo implements Serializable


Class cluedo.info.CardInfo implements Serializable

Serialized Fields

item

int item
this attribute states the item of the card. E.g. item can be kitchen, Professor Green, gun, etc.

ownerId

int ownerId
owner of the card

type

int type
this attribute can be either ROOM, PERSON, or ITEM


Class cluedo.info.CardListInfo implements Serializable

Serialized Fields

cardList

java.util.LinkedList cardList
A list of CardInfos


Class cluedo.info.ChatInfo implements Serializable

Serialized Fields

message

java.lang.String message

senderId

int senderId


Class cluedo.info.ChatRequestInfo implements Serializable

Serialized Fields

message

java.lang.String message

receiverId

int receiverId


Class cluedo.info.CluedoInfo implements Serializable


Class cluedo.CluedoPDU implements Serializable

Serialized Fields

cluedoInfo

CluedoInfo cluedoInfo
The intrinsic information that is to be transported between client and server.

priority

int priority
The priority of the PDU. The protocol design of the interactive Cluedo game supports two priotrity levels (0 and 1). Packets of priority 0 must be transmitted. Packets of priority 1 are transmitted only if the packet queue of the sender is below a certain level, i.e. does not contain more than 10 packets to be transmitted. (see cluedoInfo)

senderId

int senderId
Who sends this PDU? The senderid is the same unique id used by many inheritors of CluedoInfo to identify a certain player (playerId). The unique number is created by the server and transmitted to a client when it connects to the server (see PlayerAddRequestInfo).

version

int version


Class cluedo.info.CrimeFactInfo implements Serializable


Class cluedo.info.DiceInfo implements Serializable

Serialized Fields

dice

int dice
the dice (2-12)

playerId

int playerId
Id of the player whose dice is transmitted in this object


Class cluedo.info.DiceRequestInfo implements Serializable


Class cluedo.info.DrawFinishedInfo implements Serializable


Class cluedo.info.ErrorInfo implements Serializable

Serialized Fields

errMsg

java.lang.String errMsg
An explanation of the error.

errNo

int errNo
The number of the error


Class cluedo.info.PlayerAddConfirmInfo implements Serializable

Serialized Fields

playerId

int playerId
the id of the new player

privateId

int privateId


Class cluedo.info.PlayerAddedInfo implements Serializable


Class cluedo.info.PlayerAddRequestInfo implements Serializable

Serialized Fields

name

java.lang.String name

passwd

java.lang.String passwd


Class cluedo.info.PlayerDrawInfo implements Serializable

Serialized Fields

drawingPlayerId

int drawingPlayerId
playerId of the next player.


Class cluedo.info.PlayerInfo implements Serializable

Serialized Fields

currentDice

int currentDice
last dice thrown by this player

name

java.lang.String name
name of the player.

numberOfCards

int numberOfCards
the number of cards this player holds

playerId

int playerId
id of the player.

sessionId

int sessionId
id of the session the player participates

state

int state
state of the player. Can be either UNKNOWN, DIRECTOR, or TEAMMATE

teamId

int teamId
indicates the identity of this player in a session. An example for a role is "Professor Bloom". The teamId is the index in the teamMates field of the session this client is playing in.

x

int x
position in the play field

y

int y
position in the play field


Class cluedo.info.PlayerListInfo implements Serializable

Serialized Fields

playerList

java.util.LinkedList playerList


Class cluedo.info.PlayerListRequestInfo implements Serializable


Class cluedo.info.PlayerLostInfo implements Serializable

Serialized Fields

lostPlayerId

int lostPlayerId
Id of the removed player


Class cluedo.info.PlayerMovedInfo implements Serializable

Serialized Fields

playerId

int playerId
id of the player who makes the move.

x

int x
new position of the player in the play field

y

int y
new position of the player in the play field


Class cluedo.info.PlayerMoveRequestInfo implements Serializable

Serialized Fields

x

int x

y

int y


Class cluedo.info.PlayerNotifyInfo implements Serializable

Serialized Fields

playerId

int playerId
Id of the accpeted/rejected/removed player.

sessionId

int sessionId
Id of the session the player wishes to join

state

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

teamId

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


Class cluedo.info.PlayerReAddRequestInfo implements Serializable

Serialized Fields

playerId

int playerId
Id of the removed player


Class cluedo.info.PlayerRemovedInfo implements Serializable

Serialized Fields

removedPlayerId

int removedPlayerId
Id of the removed player


Class cluedo.info.PlayerRemoveRequestInfo implements Serializable


Class cluedo.info.PlayerRequestInfo implements Serializable

Serialized Fields

requestedPlayerId

int requestedPlayerId
Id of the player we need information about.


Class cluedo.info.SessionAddedInfo implements Serializable


Class cluedo.info.SessionAddRequestInfo implements Serializable

Serialized Fields

sessionName

java.lang.String sessionName


Class cluedo.info.SessionChatInfo implements Serializable

Serialized Fields

message

java.lang.String message

senderId

int senderId


Class cluedo.info.SessionChatRequestInfo implements Serializable

Serialized Fields

message

java.lang.String message

sessionId

int sessionId


Class cluedo.info.SessionClosedInfo implements Serializable

Serialized Fields

sessionId

int sessionId


Class cluedo.info.SessionCloseRequestInfo implements Serializable

Serialized Fields

sessionId

int sessionId


Class cluedo.info.SessionInfo implements Serializable

Serialized Fields

activePlayerIndex

int activePlayerIndex
"Pointer" to the player who has to carry out the next draw. This attribute is an index into the field teamMates.

directorId

int directorId
playerid of the director of this session.

sessionId

int sessionId
id of the session

sessionName

java.lang.String sessionName
Name of the session

state

int state
state of the session. A session can be OPENED, CLOSED or TERMINATED. The game of an open session has not yet begun and other players can join the session. The game of a closed session has already begun and no other players can join. The game of a terminated session has already ended and the session waits to be removed.

teamMates

int[] teamMates
the players who participate in this session.


Class cluedo.info.SessionJoinInfo implements Serializable

Serialized Fields

requesterId

int requesterId
id of the client who wants to join

sessionId

int sessionId
id of the session to be joined


Class cluedo.info.SessionJoinRequestInfo implements Serializable

Serialized Fields

sessionId

int sessionId


Class cluedo.info.SessionListInfo implements Serializable

Serialized Fields

sessionList

java.util.LinkedList sessionList
A list of SessionInfo objects


Class cluedo.info.SessionListRequestInfo implements Serializable


Class cluedo.info.SessionRemovedInfo implements Serializable

Serialized Fields

sessionId

int sessionId


Class cluedo.info.SessionRemoveRequestInfo implements Serializable

Serialized Fields

sessionId

int sessionId


Class cluedo.info.SessionRequestInfo implements Serializable

Serialized Fields

sessionId

int sessionId


Class cluedo.info.SuspicionAnsweredInfo implements Serializable

Serialized Fields

answererId

int answererId


Class cluedo.info.SuspicionCardInfo implements Serializable


Class cluedo.info.SuspicionInfo implements Serializable

Serialized Fields

answererId

int answererId

suspectorId

int suspectorId


Class cluedo.info.SuspicionRequestInfo implements Serializable


Class cluedo.info.WhoWhereHowInfo implements Serializable

Serialized Fields

how

CardInfo how
How was the crime carried out. Which item was used for the murder?

where

CardInfo where
Where did the crime take place

who

CardInfo who
Who carried out the crime


Class cluedo.info.WinnerInfo implements Serializable

Serialized Fields

playerId

int playerId
Which player has lost or won?

sessionId

int sessionId
In which session does he play?

state

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