|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.robot.SOCPossiblePiece soc.robot.SOCPossibleRoad soc.robot.SOCPossibleShip
public class SOCPossibleShip
This is a possible ship that we can build.
Note that it's a subclass of SOCPossibleRoad
.
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 |
---|
public final boolean isCoastalRoadAndShip
Constructor Detail |
---|
public SOCPossibleShip(SOCPlayer pl, int co, boolean isCoastal, java.util.Vector<SOCPossibleRoad> nr)
pl
- the ownerco
- coordinatesisCoastal
- Is this also a possible coastal road (isCoastalRoadAndShip
)?nr
- necessaryRoads, or null
to create a new empty Vector herepublic SOCPossibleShip(SOCPossibleShip pr)
pr
- the possible road to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |