JSettlers v1.0.6 API
Built ${date}

soc.game
Class SOCRoad

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

public class SOCRoad
extends SOCPlayingPiece

A road 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
SOCRoad(SOCPlayer pl, int co)
          Make a new road
 
Method Summary
 java.util.Vector getAdjacentEdges()
           
 java.util.Vector getAdjacentNodes()
           
 
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

SOCRoad

public SOCRoad(SOCPlayer pl,
               int co)
Make a new road

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

getAdjacentNodes

public java.util.Vector getAdjacentNodes()
Returns:
the nodes touching this road

getAdjacentEdges

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

JSettlers v1.0.6 API
Built ${date}