AGENT - Controlled agentpublic class DefConAgentController<AGENT extends DefConAgent> extends Object implements IDefConAgentController<AGENT>
| Constructor and Description |
|---|
DefConAgentController() |
| Modifier and Type | Method and Description |
|---|---|
void |
act(DefConCommand command)
Simplifies access to IAct.
|
void |
botStopped()
Called whenever the bot is stopped (has finished) or killed.
|
DefConAct |
getAct() |
GameInfo |
getGameInfo()
Returns the game info object used to query the game.
|
cz.cuni.amis.pogamut.base.utils.logging.LogCategory |
getLog()
Returns user logger.
|
DefConWorldView |
getWorldView()
Casts worldview into a friendlier type.
|
void |
initializeController(AGENT agent)
Called during the construction of the
DefConAgent. |
protected AGENT extends DefConAgent agent
public void initializeController(AGENT agent)
IDefConAgentControllerDefConAgent.initializeController in interface IDefConAgentController<AGENT extends DefConAgent>public void botStopped()
IDefConAgentControllerUse the method to save your work / data collected during the run of the agent.
botStopped in interface IDefConAgentController<AGENT extends DefConAgent>public DefConWorldView getWorldView()
public GameInfo getGameInfo()
public DefConAct getAct()
public void act(DefConCommand command)
public cz.cuni.amis.pogamut.base.utils.logging.LogCategory getLog()
bot.getLogger().getCategory(USER_LOG_ID).Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.