JSettlers v1.0.6 API
Built ${date}

soc.game
Class SOCCity

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

public class SOCCity
extends SOCPlayingPiece

A city 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
SOCCity(SOCPlayer pl, int co)
          Make a new city
 
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

SOCCity

public SOCCity(SOCPlayer pl,
               int co)
Make a new city

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

getAdjacentHexes

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

getAdjacentEdges

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

JSettlers v1.0.6 API
Built ${date}