|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SOCPossiblePiece | |
---|---|
soc.robot |
Uses of SOCPossiblePiece in soc.robot |
---|
Subclasses of SOCPossiblePiece in soc.robot | |
---|---|
class |
SOCPossibleCard
This is a possible card that we can buy |
class |
SOCPossibleCity
This is a possible city that we can build |
class |
SOCPossiblePickSpecialItem
This is a possible Special Item Pick that we can request from the server, with a SOCSetSpecialItem.OP_PICK message. |
class |
SOCPossibleRoad
This is a possible road that we can build. |
class |
SOCPossibleSettlement
This is a possible settlement that we can build |
class |
SOCPossibleShip
This is a possible ship that we can build. |
Fields in soc.robot declared as SOCPossiblePiece | |
---|---|
protected SOCPossiblePiece |
SOCRobotBrain.lastMove
keeps track of the last thing we bought, for debugging purposes |
protected SOCPossiblePiece |
SOCRobotBrain.lastTarget
keeps track of the last thing we wanted, for debugging purposes |
protected SOCPossiblePiece[] |
SOCRobotNegotiator.targetPieces
|
Fields in soc.robot with type parameters of type SOCPossiblePiece | |
---|---|
protected java.util.Vector<SOCPossiblePiece> |
SOCPossiblePiece.biggestThreats
this is the piece that we need to beat to build this one |
protected java.util.Stack<SOCPossiblePiece> |
SOCRobotNegotiator.buildingPlan
SOCRobotNegotiator.ourPlayerData 's building plan. |
protected java.util.Stack<SOCPossiblePiece> |
SOCRobotDM.buildingPlan
SOCRobotDM.ourPlayerData 's building plan; a stack of SOCPossiblePiece . |
protected java.util.Stack<SOCPossiblePiece> |
SOCRobotBrain.buildingPlan
This is our current building plan, a stack of SOCPossiblePiece . |
protected java.util.Vector<SOCPossiblePiece> |
SOCPossibleRoad.newPossibilities
|
protected java.util.Vector<SOCPossiblePiece> |
SOCPossiblePiece.threats
pieces that threaten this piece |
Methods in soc.robot that return SOCPossiblePiece | |
---|---|
SOCPossiblePiece |
SOCRobotBrain.getLastMove()
|
SOCPossiblePiece |
SOCRobotBrain.getLastTarget()
|
Methods in soc.robot that return types with arguments of type SOCPossiblePiece | |
---|---|
java.util.Vector<SOCPossiblePiece> |
SOCPossiblePiece.getBiggestThreats()
|
java.util.Stack<SOCPossiblePiece> |
SOCRobotBrain.getBuildingPlan()
|
java.util.Vector<SOCPossiblePiece> |
SOCPossibleRoad.getNewPossibilities()
Get the list of any possibilities added by SOCPossibleRoad.addNewPossibility(SOCPossiblePiece) . |
java.util.Vector<SOCPossiblePiece> |
SOCPossiblePiece.getThreats()
Get the list of opponents' possible pieces that threaten this possible piece. |
Methods in soc.robot with parameters of type SOCPossiblePiece | |
---|---|
void |
SOCPossiblePiece.addBiggestThreat(SOCPossiblePiece bt)
set the biggest threat |
void |
SOCPossibleRoad.addNewPossibility(SOCPossiblePiece piece)
add a new possibility to the list |
void |
SOCPossiblePiece.addThreat(SOCPossiblePiece piece)
add a threat to the list, if not already there |
protected float |
SOCRobotDM.getWinGameETABonus(SOCPossiblePiece posPiece)
add a bonus to the possible piece score based on the change in win game ETA |
SOCTradeOffer |
SOCRobotNegotiator.makeOffer(SOCPossiblePiece targetPiece)
make an offer to another player |
protected boolean |
SOCRobotBrain.makeOffer(SOCPossiblePiece target)
Make a trade offer to another player, or decide to make no offer. |
void |
SOCRobotNegotiator.setTargetPiece(int pn,
SOCPossiblePiece piece)
set a target piece for a player |
Method parameters in soc.robot with type arguments of type SOCPossiblePiece | |
---|---|
static SOCResourceSet |
DiscardStrategy.discard(int numDiscards,
java.util.Stack<SOCPossiblePiece> buildingPlan,
java.util.Random rand,
SOCPlayer ourPlayerData,
SOCRobotParameters robotParameters,
SOCRobotDM decisionMaker,
SOCRobotNegotiator negotiator)
When we have to discard, try to keep the resources needed for our building plan. |
Constructor parameters in soc.robot with type arguments of type SOCPossiblePiece | |
---|---|
SOCRobotDM(SOCRobotParameters params,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> pt,
SOCPlayerTracker opt,
SOCPlayer opd,
java.util.Stack<SOCPossiblePiece> bp)
Constructor to use if you don't want to use a brain. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |