cz.cuni.amis.pogamut.defcon.example
Class ExampleBotLogicController
java.lang.Object
cz.cuni.amis.pogamut.defcon.agent.impl.DefConAgentController<AGENT>
cz.cuni.amis.pogamut.defcon.agent.impl.DefConAgentLogicController<ExampleBot>
cz.cuni.amis.pogamut.defcon.example.ExampleBotLogicController
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule<ExampleBot>>, IDefConAgentController<ExampleBot>, IDefConAgentLogicController<ExampleBot,cz.cuni.amis.pogamut.base.agent.module.LogicModule<ExampleBot>>
public class ExampleBotLogicController
- extends DefConAgentLogicController<ExampleBot>
Example of a bot.
- Author:
- Radek 'Black_Hand' Pibil
| Methods inherited from class cz.cuni.amis.pogamut.defcon.agent.impl.DefConAgentLogicController |
addGameLogicListener, beforeFirstLogic, gameLogicWorker, getBuildingsManager, getFlagChecker, getFleetsManager, getLogicInitializeTime, getLogicShutdownTime, getMailBox, getRandom, initializeController, logic, logicInitialize, logicShutdown, preGameLogic, unregisterUpdates |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
placeableWaterQuadTrees
protected LinkedList<QuadTree> placeableWaterQuadTrees
enemyQuadTrees
protected LinkedList<LinkedList<QuadTree>> enemyQuadTrees
mapInfo
protected GameMapInfoPolygons mapInfo
closestPoints
protected ClosestPointsManager closestPoints
lookup
protected ClosestPointsLookUp lookup
qTreesManager
protected QuadTreesManager qTreesManager
placementProvider
protected BuildingPlacementProvider placementProvider
precomputingStage
protected ExampleBotLogicController.PrecomputingStage precomputingStage
buildingPlacementOrdering
protected final ExampleBotLogicController.PrecomputingStage[] buildingPlacementOrdering
BUILDING_PLACEMENT_TRANSPOSITIONS
protected static final int BUILDING_PLACEMENT_TRANSPOSITIONS
- See Also:
- Constant Field Values
placementIndex
protected int placementIndex
semaphore
protected int semaphore
placedFleetListener
protected IPlacingFinishedListener placedFleetListener
- Reacts to fleets manager finishing placing.
ExampleBotLogicController
public ExampleBotLogicController()
firstGameLogic
public void firstGameLogic()
- Overrides:
firstGameLogic in class DefConAgentLogicController<ExampleBot>
permuteBuildingPlaccementOrdering
protected void permuteBuildingPlaccementOrdering()
getNextBuildingPlacementStage
protected ExampleBotLogicController.PrecomputingStage getNextBuildingPlacementStage()
createGameMapInfoPolygons
protected void createGameMapInfoPolygons()
- Prepares, construct and triggers processing of game map analysis.
createQuadTrees
protected void createQuadTrees()
- Creates quad trees from game map info polys.
createClosestPoints
protected void createClosestPoints()
gameLogic
public void gameLogic()
- State machine switch.
- Overrides:
gameLogic in class DefConAgentLogicController<ExampleBot>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.