public class UDKBotModule<PARAMS extends UDKAgentParameters> extends UDKCommunicationModule<PARAMS>
UDKCommunicationModule
for the purpose of UDKBot
instantiation.
Introduces worldViewDependenciesProvider
.
Newly binded classes:
Mapped class | Target | Description | |
---|---|---|---|
IWorldMessageTranslator | -> | BotFSM | Protocol-validating translator of InfoMessage s of GameBots2004. |
IWorldView | -> | IVisionWorldView | Binds world view as vision world view. |
IVisionWorldView | -> | ILockableVisionWorldView | Binds vision world view as lockable one. |
ILockableWorldView | -> | ILockableVisionWorldView | Binds lockable world view as vision world view. |
ILockableVisionWorldView | -> | UDKSyncLockableWorldView | Binds world view with concrete implementation. |
UDKSyncLockableWorldView dependencies |
-> | worldViewDependenciesProvider | |
IAgent | -> | IAgent3D | |
IAgent3D | -> | IUDKBot | |
IUDKBot | -> | UDKBot | Binds concrete implementation of the agent. |
Mapped class | Description |
---|---|
IUDKBotController | Controller of the bot. |
... don't forget to call super.configureModules() in the subclasses ;-)
UDKCommunicationModule
,
GuiceRemoteAgentModule
,
GuiceAgentModule
Modifier and Type | Field and Description |
---|---|
protected AdaptableProvider<ComponentDependencies> |
worldViewDependenciesProvider
Dependency provider for the world view, so the world view know when to start.
|
connectionDependenciesProvider
Modifier | Constructor and Description |
---|---|
protected |
UDKBotModule() |
|
UDKBotModule(Class<? extends IUDKBotController> botControllerClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureModules() |
void |
prepareNewAgent(PARAMS agentParameters)
Binds runtime dependencies to the module/
Injector . |
getAddressProvider
addModule, configure, createAgentScope, createAgentTeamScope, getAgentIdProvider, getAgentParamsProvider, getAgentScope, getAgentTeamScope
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected AdaptableProvider<ComponentDependencies> worldViewDependenciesProvider
protected UDKBotModule()
public UDKBotModule(Class<? extends IUDKBotController> botControllerClass)
public void prepareNewAgent(PARAMS agentParameters)
UDKCommunicationModule
Injector
.
Must be called before the new agent is instantiated with Injector
.
prepareNewAgent
in class UDKCommunicationModule<PARAMS extends UDKAgentParameters>
protected void configureModules()
configureModules
in class UDKCommunicationModule<PARAMS extends UDKAgentParameters>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.