|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.robot.SOCPossiblePiece soc.robot.SOCPossibleCity
public class SOCPossibleCity
This is a possible city that we can build
Field Summary | |
---|---|
protected int[] |
speedup
Speedup per building type. |
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 | |
---|---|
SOCPossibleCity(SOCPlayer pl,
int co)
constructor |
|
SOCPossibleCity(SOCPossibleCity pc)
copy constructor Note: This will not copy vectors, only make empty ones |
Method Summary | |
---|---|
int[] |
getSpeedup()
|
int |
getSpeedupTotal()
|
void |
updateSpeedup()
calculate the speedup that this city gives. |
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 |
---|
protected int[] speedup
SOCBuildingSpeedEstimate.MIN
to SOCBuildingSpeedEstimate.MAXPLUSONE
.
Constructor Detail |
---|
public SOCPossibleCity(SOCPlayer pl, int co)
pl
- the ownerco
- coordinates;public SOCPossibleCity(SOCPossibleCity pc)
pc
- the possible city to copyMethod Detail |
---|
public void updateSpeedup()
getSpeedup()
public int[] getSpeedup()
public int getSpeedupTotal()
updateSpeedup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |