Serialized Form
accuserId
int accuserId
- The playerId of the player who indicates the accusation.
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
cardList
java.util.LinkedList cardList
- A list of
CardInfo
s
message
java.lang.String message
senderId
int senderId
message
java.lang.String message
receiverId
int receiverId
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
dice
int dice
- the dice (2-12)
playerId
int playerId
- Id of the player whose dice is transmitted in this object
errMsg
java.lang.String errMsg
- An explanation of the error.
errNo
int errNo
- The number of the error
playerId
int playerId
- the id of the new player
privateId
int privateId
name
java.lang.String name
passwd
java.lang.String passwd
drawingPlayerId
int drawingPlayerId
- playerId of the next player.
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
playerList
java.util.LinkedList playerList
lostPlayerId
int lostPlayerId
- Id of the removed player
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
x
int x
y
int y
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.
playerId
int playerId
- Id of the removed player
removedPlayerId
int removedPlayerId
- Id of the removed player
requestedPlayerId
int requestedPlayerId
- Id of the player we need information about.
sessionName
java.lang.String sessionName
message
java.lang.String message
senderId
int senderId
message
java.lang.String message
sessionId
int sessionId
sessionId
int sessionId
sessionId
int sessionId
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.
requesterId
int requesterId
- id of the client who wants to join
sessionId
int sessionId
- id of the session to be joined
sessionId
int sessionId
sessionList
java.util.LinkedList sessionList
- A list of SessionInfo objects
sessionId
int sessionId
sessionId
int sessionId
sessionId
int sessionId
answererId
int answererId
answererId
int answererId
suspectorId
int suspectorId
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
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
.