cluedo.info
Class DiceInfo

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

public class DiceInfo
extends CluedoInfo

Instances of DiceInfo are used to indicate the dice of a player. A Player may request a dice by transmitting a DiceRequestInfo to the server. The server answers the request with a DiceInfo.

See Also:
CluedoPDU, DiceRequestInfo, Serialized Form

Field Summary
 int dice
          the dice (2-12)
 int playerId
          Id of the player whose dice is transmitted in this object
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
DiceInfo(int playerId, int dice)
           
 
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 player whose dice is transmitted in this object

dice

public int dice
the dice (2-12)
Constructor Detail

DiceInfo

public DiceInfo(int playerId,
                int dice)