public class ExampleBotLogicController extends DefConAgentLogicController<ExampleBot>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ExampleBotLogicController.PrecomputingStage
Since this bot is implemented as a state machine we have to declare
states.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUILDING_PLACEMENT_TRANSPOSITIONS |
protected ExampleBotLogicController.PrecomputingStage[] |
buildingPlacementOrdering |
protected ClosestPointsManager |
closestPoints |
protected LinkedList<LinkedList<QuadTree>> |
enemyQuadTrees |
protected ClosestPointsLookUp |
lookup |
protected GameMapInfoPolygons |
mapInfo |
protected LinkedList<QuadTree> |
placeableWaterQuadTrees |
protected IPlacingFinishedListener |
placedFleetListener
Reacts to fleets manager finishing placing.
|
protected int |
placementIndex |
protected BuildingPlacementProvider |
placementProvider |
protected ExampleBotLogicController.PrecomputingStage |
precomputingStage |
protected QuadTreesManager |
qTreesManager |
protected int |
semaphore |
buildingsManager, flagChecker, fleetsManager, gameInfo, gameStartedListener, logicModule, worldviewagent| Constructor and Description |
|---|
ExampleBotLogicController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createClosestPoints() |
protected void |
createGameMapInfoPolygons()
Prepares, construct and triggers processing of game map analysis.
|
protected void |
createQuadTrees()
Creates quad trees from game map info polys.
|
void |
firstGameLogic() |
void |
gameLogic()
State machine switch.
|
protected ExampleBotLogicController.PrecomputingStage |
getNextBuildingPlacementStage() |
protected void |
permuteBuildingPlaccementOrdering() |
addGameLogicListener, beforeFirstLogic, gameLogicWorker, getBuildingsManager, getFlagChecker, getFleetsManager, getLogicInitializeTime, getLogicShutdownTime, getMailBox, getRandom, initializeController, logic, logicInitialize, logicShutdown, preGameLogic, unregisterUpdatesact, botStopped, getAct, getGameInfo, getLog, getWorldViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbotStoppedprotected LinkedList<QuadTree> placeableWaterQuadTrees
protected LinkedList<LinkedList<QuadTree>> enemyQuadTrees
protected GameMapInfoPolygons mapInfo
protected ClosestPointsManager closestPoints
protected ClosestPointsLookUp lookup
protected QuadTreesManager qTreesManager
protected BuildingPlacementProvider placementProvider
protected ExampleBotLogicController.PrecomputingStage precomputingStage
protected final ExampleBotLogicController.PrecomputingStage[] buildingPlacementOrdering
protected static final int BUILDING_PLACEMENT_TRANSPOSITIONS
protected int placementIndex
protected int semaphore
protected IPlacingFinishedListener placedFleetListener
public void firstGameLogic()
firstGameLogic in class DefConAgentLogicController<ExampleBot>protected void permuteBuildingPlaccementOrdering()
protected ExampleBotLogicController.PrecomputingStage getNextBuildingPlacementStage()
protected void createGameMapInfoPolygons()
protected void createQuadTrees()
protected void createClosestPoints()
public void gameLogic()
gameLogic in class DefConAgentLogicController<ExampleBot>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.