JSettlers v1.0.6 API
Built ${date}

soc.game
Class SOCSettlement

java.lang.Object
  extended bysoc.game.SOCPlayingPiece
      extended bysoc.game.SOCSettlement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SOCSettlement
extends SOCPlayingPiece

A settlement playing piece

See Also:
Serialized Form

Field Summary
 
Fields inherited from class soc.game.SOCPlayingPiece
CITY, coord, MAXPLUSONE, MIN, pieceType, player, ROAD, SETTLEMENT
 
Constructor Summary
SOCSettlement(SOCPlayer pl, int co)
          Make a new settlement
 
Method Summary
 java.util.Vector getAdjacentEdges()
           
 java.util.Vector getAdjacentHexes()
           
 
Methods inherited from class soc.game.SOCPlayingPiece
getCoordinates, getPlayer, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOCSettlement

public SOCSettlement(SOCPlayer pl,
                     int co)
Make a new settlement

Parameters:
pl - player who owns the city
co - coordinates
Method Detail

getAdjacentHexes

public java.util.Vector getAdjacentHexes()
Returns:
the hexes touching this settlement

getAdjacentEdges

public java.util.Vector getAdjacentEdges()
Returns:
edges touching this settlement

JSettlers v1.0.6 API
Built ${date}