soc.robot
Class SOCPossibleShip

java.lang.Object
  extended by soc.robot.SOCPossiblePiece
      extended by soc.robot.SOCPossibleRoad
          extended by soc.robot.SOCPossibleShip

public class SOCPossibleShip
extends SOCPossibleRoad

This is a possible ship that we can build. Note that it's a subclass of SOCPossibleRoad.

Since:
2.0.00
Author:
Jeremy D Monin <jeremy@nand.net>

Field Summary
 boolean isCoastalRoadAndShip
          True if this is a coastal edge that could possibly be a road or a ship
 
Fields inherited from class soc.robot.SOCPossibleRoad
longestRoadPotential, longestRoadValue, necessaryRoads, newPossibilities, numberOfNecessaryRoads
 
Fields inherited from class soc.robot.SOCPossiblePiece
biggestThreats, CARD, CITY, coord, eta, hasBeenExpanded, MAXPLUSONE, MIN, PICK_SPECIAL, pieceType, player, ROAD, score, SETTLEMENT, SHIP, threats, threatUpdatedFlag, updated
 
Constructor Summary
SOCPossibleShip(SOCPlayer pl, int co, boolean isCoastal, java.util.Vector<SOCPossibleRoad> nr)
          constructor
SOCPossibleShip(SOCPossibleShip pr)
          copy constructor Note: This will not copy the vectors, just make empty ones
 
Method Summary
 
Methods inherited from class soc.robot.SOCPossibleRoad
addNecessaryRoad, addNewPossibility, getLRPotential, getLRValue, getNecessaryRoads, getNewPossibilities, getNumberOfNecessaryRoads, isRoadNotShip, setLRPotential, setLRValue, setNumberOfNecessaryRoads
 
Methods inherited from class soc.robot.SOCPossiblePiece
addBiggestThreat, addThreat, addToScore, clearBiggestThreats, clearThreats, clearUpdateFlag, getBiggestThreats, getCoordinates, getETA, getPlayer, getResourcesToBuild, getScore, getThreats, getType, hasBeenExpanded, isETAUpdated, isThreatUpdated, resetExpandedFlag, resetScore, setETA, setExpandedFlag, subtractFromScore, threatUpdated, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isCoastalRoadAndShip

public final boolean isCoastalRoadAndShip
True if this is a coastal edge that could possibly be a road or a ship

Constructor Detail

SOCPossibleShip

public SOCPossibleShip(SOCPlayer pl,
                       int co,
                       boolean isCoastal,
                       java.util.Vector<SOCPossibleRoad> nr)
constructor

Parameters:
pl - the owner
co - coordinates
isCoastal - Is this also a possible coastal road (isCoastalRoadAndShip)?
nr - necessaryRoads, or null to create a new empty Vector here

SOCPossibleShip

public SOCPossibleShip(SOCPossibleShip pr)
copy constructor Note: This will not copy the vectors, just make empty ones

Parameters:
pr - the possible road to copy