public class UDKBot<WORLD_VIEW extends IVisionWorldView,ACT extends IAct,CONTROLLER extends IUDKBotController> extends AbstractAgent3D<WORLD_VIEW,ACT> implements IUDKBot
TODO: [comment me!]
IUDKBot.BoolBotParamevents, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME| Constructor and Description |
|---|
UDKBot(UDKAgentParameters parameters,
IComponentBus eventBus,
IAgentLogger logger,
IWorldView worldView,
IAct act,
IUDKBotController init) |
| Modifier and Type | Method and Description |
|---|---|
protected AgentJMXComponents |
createAgentJMX() |
protected cz.cuni.amis.introspection.Folder |
createIntrospection() |
boolean |
getBoolConfigure(IUDKBot.BoolBotParam param)
Get configuration parameter value.
|
CONTROLLER |
getController()
Returns the bot controller passed inside
UDKBot#AbstractUT2004Bot(IAgentId, IComponentBus, IAgentLogger, IVisionWorldView, IAct, IUT2004BotInitialization). |
Location |
getLocation() |
UDKAgentParameters |
getParams()
Returns parameters that were passed into the agent during the construction.
|
Rotation |
getRotation() |
Velocity |
getVelocity() |
WORLD_VIEW |
getWorldView() |
protected void |
initCommandRequested()
This method is called whenever handshake with GameBots2004 is over - the GameBots2004 is awaiting
the bot to reply with Ready command to begin the handshake.
|
protected void |
killAgent() |
protected void |
readyCommandRequested()
This method is called whenever HelloBot message is parsed - the GameBots2004 is awaiting
the bot to reply with Ready command to begin the handshake.
|
void |
respawn() |
void |
setBoolConfigure(IUDKBot.BoolBotParam param,
boolean value)
Configures bot property.
|
protected void |
startAgent() |
protected void |
stopAgent() |
getActaddDependency, addDependency, addDependency, addJMXComponents, awaitState, awaitState, componentFatalError, componentStarted, componentStarted, componentStopped, componentStopping, equals, getComponentId, getEventBus, getIntrospection, getJMX, getLog, getLogger, getName, getState, hashCode, inState, kill, notInState, pause, pauseAgent, preKillAgent, preStopAgent, resetAgent, resetEvent, resume, resumeAgent, setState, start, startPaused, startPausedAgent, stop, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActgetComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stopgetEventBus@Inject public UDKBot(UDKAgentParameters parameters, IComponentBus eventBus, IAgentLogger logger, IWorldView worldView, IAct act, IUDKBotController init)
agentId - eventBus - logger - worldView - due to Guice nature, this can't be templated with WORLD_VIEW - Guice can't use it as a key for the injectionact - due to Guice nature, this can't be templated with ACT - Guice can't use it as a key for the injectioninit - due to Guice nature, this can't be templated with CONTROLLER - Guice can't use it as a key for the injectionpublic CONTROLLER getController()
UDKBot#AbstractUT2004Bot(IAgentId, IComponentBus, IAgentLogger, IVisionWorldView, IAct, IUT2004BotInitialization).public UDKAgentParameters getParams()
This is a great place to parametrize your agent. Note that you may pass arbitrary subclass of UDKAgentParameters
to the constructor/factory/runner and pick them up here.
protected void startAgent()
startAgent in class AbstractAgentprotected void stopAgent()
stopAgent in class AbstractAgentprotected void killAgent()
killAgent in class AbstractAgentprotected void readyCommandRequested()
protected void initCommandRequested()
Left as protected if you need to override it - but you probably wouldn't.
public Location getLocation()
getLocation in interface ILocatedpublic Rotation getRotation()
getRotation in interface IRotablepublic Velocity getVelocity()
getVelocity in interface ILocomotivepublic void respawn()
throws cz.cuni.amis.utils.exception.PogamutException
respawn in interface IUnrealBotcz.cuni.amis.utils.exception.PogamutExceptionprotected AgentJMXComponents createAgentJMX()
createAgentJMX in class AbstractAgent3D<WORLD_VIEW extends IVisionWorldView,ACT extends IAct>public void setBoolConfigure(IUDKBot.BoolBotParam param, boolean value)
IUDKBotsetBoolConfigure in interface IUDKBotpublic boolean getBoolConfigure(IUDKBot.BoolBotParam param)
IUDKBotgetBoolConfigure in interface IUDKBotprotected cz.cuni.amis.introspection.Folder createIntrospection()
createIntrospection in class AbstractAgentpublic WORLD_VIEW getWorldView()
getWorldView in interface IObservingAgentgetWorldView in class AbstractObservingAgent<WORLD_VIEW extends IVisionWorldView>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.