cluedo.info
Class PlayerAddConfirmInfo

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

public class PlayerAddConfirmInfo
extends CluedoInfo

Instances of this class are transmitted by the server to a client in order to confirm a PlayerAddRequest and to tell the client its playerId. The server additionally sends a PlayerAddedInfo to all other clients.

See Also:
CluedoPDU, PlayerAddRequestInfo, PlayerAddedInfo, Serialized Form

Field Summary
 int playerId
          the id of the new player
 int privateId
           
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
PlayerAddConfirmInfo(int playerId, int privateId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

playerId

public int playerId
the id of the new player

privateId

public int privateId
Constructor Detail

PlayerAddConfirmInfo

public PlayerAddConfirmInfo(int playerId,
                            int privateId)