|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.defcon.agent.impl.DefConAgentController<AGENT>
AGENT - Controlled agentpublic class DefConAgentController<AGENT extends DefConAgent>
Basic implementation of controller, does some basic stuff like assigning of logger
| Field Summary | |
|---|---|
protected AGENT |
agent
|
| Constructor Summary | |
|---|---|
DefConAgentController()
|
|
| Method Summary | |
|---|---|
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. |
LogCategory |
getLog()
Returns user logger. |
DefConWorldView |
getWorldView()
Casts worldview into a friendlier type. |
void |
initializeController(AGENT agent)
Called during the construction of the DefConAgent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AGENT extends DefConAgent agent
| Constructor Detail |
|---|
@Inject public DefConAgentController()
| Method Detail |
|---|
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 LogCategory getLog()
bot.getLogger().getCategory(USER_LOG_ID).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||