JSettlers v1.0.6 API
Built ${date}

soc.game
Class SOCPlayingPiece

java.lang.Object
  extended bysoc.game.SOCPlayingPiece
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
SOCCity, SOCRoad, SOCSettlement

public abstract class SOCPlayingPiece
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Playing pieces for Settlers of Catan

See Also:
Serialized Form

Field Summary
static int CITY
           
protected  int coord
          Where this piece is on the board
static int MAXPLUSONE
           
static int MIN
           
protected  int pieceType
          The type of this playing piece
protected  SOCPlayer player
          The player who owns this piece
static int ROAD
          Types of playing pieces
static int SETTLEMENT
           
 
Constructor Summary
SOCPlayingPiece()
           
 
Method Summary
 int getCoordinates()
           
 SOCPlayer getPlayer()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROAD

public static final int ROAD
Types of playing pieces

See Also:
Constant Field Values

SETTLEMENT

public static final int SETTLEMENT
See Also:
Constant Field Values

CITY

public static final int CITY
See Also:
Constant Field Values

MIN

public static final int MIN
See Also:
Constant Field Values

MAXPLUSONE

public static final int MAXPLUSONE
See Also:
Constant Field Values

pieceType

protected int pieceType
The type of this playing piece


player

protected SOCPlayer player
The player who owns this piece


coord

protected int coord
Where this piece is on the board

Constructor Detail

SOCPlayingPiece

public SOCPlayingPiece()
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

toString

public java.lang.String toString()
Returns:
a human readable form of this object

JSettlers v1.0.6 API
Built ${date}