|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SOCPlayerTracker | |
---|---|
soc.robot |
Uses of SOCPlayerTracker in soc.robot |
---|
Fields in soc.robot declared as SOCPlayerTracker | |
---|---|
protected SOCPlayerTracker |
SOCRobotNegotiator.ourPlayerTracker
|
protected SOCPlayerTracker |
SOCRobotDM.ourPlayerTracker
|
protected SOCPlayerTracker |
SOCRobotBrain.ourPlayerTracker
our player tracker |
Fields in soc.robot with type parameters of type SOCPlayerTracker | |
---|---|
protected java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCRobotNegotiator.playerTrackers
|
protected java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCRobotDM.playerTrackers
|
protected java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCRobotBrain.playerTrackers
trackers for all players (one per player, including this robot) |
Methods in soc.robot that return SOCPlayerTracker | |
---|---|
SOCPlayerTracker |
SOCRobotBrain.getOurPlayerTracker()
|
Methods in soc.robot that return types with arguments of type SOCPlayerTracker | |
---|---|
static java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCPlayerTracker.copyPlayerTrackers(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
make copies of player trackers and then make connections between copied pieces |
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCRobotBrain.getPlayerTrackers()
|
static java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCPlayerTracker.tryPutPiece(SOCPlayingPiece piece,
SOCGame game,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
See how building a piece impacts the game. |
Method parameters in soc.robot with type arguments of type SOCPlayerTracker | |
---|---|
void |
SOCPlayerTracker.addNewRoadOrShip(SOCRoad road,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
add a road or ship that has just been built |
void |
SOCPlayerTracker.addNewSettlement(SOCSettlement settlement,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
Add a settlement that has just been built. |
private void |
SOCPlayerTracker.addOurNewRoadOrShip(SOCRoad road,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers,
int expandLevel)
Add one of our roads or ships that has just been built. |
void |
SOCPlayerTracker.addOurNewSettlement(SOCSettlement settlement,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
Add one of our settlements, and newly possible pieces from it. |
protected float |
SOCRobotDM.calcWGETABonus(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackersBefore,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackersAfter)
Calc the win game ETA bonus for a move, based on getWinGameETA() . |
protected float |
SOCRobotDM.calcWGETABonus(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackersBefore,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackersAfter)
Calc the win game ETA bonus for a move, based on getWinGameETA() . |
private float |
SOCRobotDM.calcWGETABonusAux(int[] originalWGETAs,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackersAfter,
java.util.Vector<SOCPlayerTracker> leaders)
Helps calculate WGETA bonus for making a move or other change in the game. |
private float |
SOCRobotDM.calcWGETABonusAux(int[] originalWGETAs,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackersAfter,
java.util.Vector<SOCPlayerTracker> leaders)
Helps calculate WGETA bonus for making a move or other change in the game. |
static int |
RobberStrategy.chooseRobberVictim(boolean[] choices,
SOCGame game,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> playerTrackers)
choose a robber victim |
static java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCPlayerTracker.copyPlayerTrackers(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
make copies of player trackers and then make connections between copied pieces |
void |
SOCPlayerTracker.expandRoadOrShip(SOCPossibleRoad targetRoad,
SOCPlayer player,
SOCPlayer dummy,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers,
int level)
Expand a possible road or ship, to see what placements it makes possible. |
static int |
RobberStrategy.getBestRobberHex(SOCGame game,
SOCPlayer ourPlayerData,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> playerTrackers,
java.util.Random rand)
Determine the best hex to move the robber. |
protected float |
SOCRobotDM.getWinGameETABonusForRoad(SOCPossibleRoad posRoad,
int roadETA,
int leadersCurrentWGETA,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> playerTrackers)
For SOCRobotDM.SMART_STRATEGY , add a bonus to the road or ship score
based on the change in win game ETA for this one road or ship
(possible settlements are 1 road closer, longest road bonus, etc). |
static void |
SOCPlayerTracker.playerTrackersDebug(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> playerTrackers)
Print debug output for a set of player trackers. |
static java.util.HashMap<java.lang.Integer,SOCPlayerTracker> |
SOCPlayerTracker.tryPutPiece(SOCPlayingPiece piece,
SOCGame game,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
See how building a piece impacts the game. |
static void |
SOCPlayerTracker.tryPutPieceNoCopy(SOCPlayingPiece piece,
SOCGame game,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
Same as tryPutPiece ,
but we don't make a copy of the player trackers. |
protected void |
SOCPlayerTracker.updateSettlementConflicts(SOCPossibleSettlement ps,
java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
update settlement conflicts |
void |
SOCPlayerTracker.updateThreats(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> trackers)
update threats for pieces that need to be updated |
static void |
SOCPlayerTracker.updateWinGameETAs(java.util.HashMap<java.lang.Integer,SOCPlayerTracker> playerTrackers)
Update winGameETAs for player trackers. |
Constructors in soc.robot with parameters of type SOCPlayerTracker | |
---|---|
SOCPlayerTracker(SOCPlayerTracker pt)
Copy constructor. |
|
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. |
Constructor parameters in soc.robot with type arguments of type SOCPlayerTracker | |
---|---|
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 |