|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoc.robot.SOCPossiblePiece
soc.robot.SOCPossibleRoad
This is a possible road that we can build
Field Summary | |
protected int |
longestRoadPotential
|
protected int |
longestRoadValue
|
protected java.util.Vector |
necessaryRoads
|
protected java.util.Vector |
newPossibilities
|
protected int |
numberOfNecessaryRoads
|
Fields inherited from class soc.robot.SOCPossiblePiece |
biggestThreats, CARD, CITY, coord, eta, hasBeenExpanded, MAXPLUSONE, MIN, pieceType, player, ROAD, score, SETTLEMENT, threats, threatUpdatedFlag, updated |
Constructor Summary | |
SOCPossibleRoad(SOCPlayer pl,
int co,
java.util.Vector nr)
constructor |
|
SOCPossibleRoad(SOCPossibleRoad pr)
copy constructor Note: This will not copy the vectors, just make empty ones |
Method Summary | |
void |
addNecessaryRoad(SOCPossibleRoad rd)
add a possible road to the list of necessary roads |
void |
addNewPossibility(SOCPossiblePiece piece)
add a new possibility to the list |
int |
getLRPotential()
|
int |
getLRValue()
|
java.util.Vector |
getNecessaryRoads()
|
java.util.Vector |
getNewPossibilities()
|
int |
getNumberOfNecessaryRoads()
|
void |
setLRPotential(int value)
set the longest road potential |
void |
setLRValue(int value)
set the longest road value |
void |
setNumberOfNecessaryRoads(int num)
set the minimum number of necessary roads |
Methods inherited from class soc.robot.SOCPossiblePiece |
addBiggestThreat, addThreat, addToScore, clearBiggestThreats, clearThreats, clearUpdateFlag, getBiggestThreats, getCoordinates, getETA, getPlayer, 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 |
protected java.util.Vector necessaryRoads
protected java.util.Vector newPossibilities
protected int longestRoadValue
protected int longestRoadPotential
protected int numberOfNecessaryRoads
Constructor Detail |
public SOCPossibleRoad(SOCPlayer pl, int co, java.util.Vector nr)
pl
- the ownerco
- coordinatesnr
- necessaryRoadspublic SOCPossibleRoad(SOCPossibleRoad pr)
pr
- the possible road to copyMethod Detail |
public java.util.Vector getNecessaryRoads()
public int getNumberOfNecessaryRoads()
public void setNumberOfNecessaryRoads(int num)
num
- the minimum number of necessary roadspublic java.util.Vector getNewPossibilities()
public int getLRValue()
public int getLRPotential()
public void addNecessaryRoad(SOCPossibleRoad rd)
rd
- the roadpublic void addNewPossibility(SOCPossiblePiece piece)
piece
- the new possible piecepublic void setLRValue(int value)
value
- public void setLRPotential(int value)
value
-
|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |