soc.robot
Class SOCPlayerAction

java.lang.Object
  extended by soc.robot.SOCPlayerAction

public class SOCPlayerAction
extends java.lang.Object

DOCUMENT ME!

Author:
$author$

Field Summary
protected  int actionType
          The type of action
protected  int coord
          Where this piece is on the board
static int DRAW_VP
           
static int PLACE_CITY
           
static int PLACE_ROAD
          possible actions
static int PLACE_SETTLEMENT
           
static int PLAY_KNIGHT
           
protected  SOCPlayer player
          The player who owns this piece
static int REMOVE_KNIGHT
           
static int REMOVE_VP
           
 
Constructor Summary
SOCPlayerAction(int type, SOCPlayer pl, int co)
          constructor
 
Method Summary
 int getCoordinates()
           
 SOCPlayer getPlayer()
           
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLACE_ROAD

public static final int PLACE_ROAD
possible actions

See Also:
Constant Field Values

PLACE_SETTLEMENT

public static final int PLACE_SETTLEMENT
See Also:
Constant Field Values

PLACE_CITY

public static final int PLACE_CITY
See Also:
Constant Field Values

PLAY_KNIGHT

public static final int PLAY_KNIGHT
See Also:
Constant Field Values

DRAW_VP

public static final int DRAW_VP
See Also:
Constant Field Values

REMOVE_KNIGHT

public static final int REMOVE_KNIGHT
See Also:
Constant Field Values

REMOVE_VP

public static final int REMOVE_VP
See Also:
Constant Field Values

actionType

protected int actionType
The type of action


player

protected SOCPlayer player
The player who owns this piece


coord

protected int coord
Where this piece is on the board

Constructor Detail

SOCPlayerAction

public SOCPlayerAction(int type,
                       SOCPlayer pl,
                       int co)
constructor

Method Detail

getType

public int getType()
Returns:
the type of piece

getPlayer

public SOCPlayer getPlayer()
Returns:
the owner of the piece

getCoordinates

public int getCoordinates()
Returns:
the coordinates for this piece