cluedo.info
Class PlayerMovedInfo

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

public class PlayerMovedInfo
extends CluedoInfo

Sent by a client in order to indicate the next move. The server will check if the move is legal. If the move is legal it will broadcast the object to all team mates. Otherwise an ErrorInfo will be returned.

See Also:
CluedoPDU, Serialized Form

Field Summary
 int playerId
          id of the player who makes the move.
 int x
          new position of the player in the play field
 int y
          new position of the player in the play field
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
PlayerMovedInfo(int playerId, int x, int y)
           
 
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 who makes the move.

x

public int x
new position of the player in the play field

y

public int y
new position of the player in the play field
Constructor Detail

PlayerMovedInfo

public PlayerMovedInfo(int playerId,
                       int x,
                       int y)