cluedo.info
Class PlayerAddedInfo

java.lang.Object
  |
  +--cluedo.info.CluedoInfo
        |
        +--cluedo.info.PlayerInfo
              |
              +--cluedo.info.PlayerAddedInfo

public class PlayerAddedInfo
extends PlayerInfo

Instances of this class are transmitted by the server to all clients in order to announce a new player. The server transmits this object after the reception of a PlayerAddRequest from a client. The server additionally sends a PlayerAddConfirmInfo to the client that sent the PlayerAddRequestinfo.

See Also:
CluedoPDU, PlayerAddRequestInfo, PlayerAddConfirmInfo, Serialized Form

Fields inherited from class cluedo.info.PlayerInfo
currentDice, name, numberOfCards, playerId, sessionId, state, teamId, x, y
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
PlayerAddedInfo(int playerId, java.lang.String name)
           
PlayerAddedInfo(PlayerInfo pi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerAddedInfo

public PlayerAddedInfo(int playerId,
                       java.lang.String name)

PlayerAddedInfo

public PlayerAddedInfo(PlayerInfo pi)