|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUT2004BotController<BOT extends UT2004Bot>
Method Summary | |
---|---|
void |
botInitialized(GameInfo gameInfo,
ConfigChange currentConfig,
InitedMessage init)
This method is called whenever InitedMessage is received. |
void |
botKilled(BotKilled event)
Called whenever the bot gets killed inside the game. |
void |
botShutdown()
Called whenever the bot is shutdown (has finished) or killed (not in the game but as the instance). |
void |
botSpawned(GameInfo gameInfo,
ConfigChange currentConfig,
InitedMessage init,
Self self)
This method is called only once whenever first batch of information what the bot can see is received. |
void |
finishControllerInitialization()
Called after botSpawned(GameInfo, ConfigChange, InitedMessage, Self) as a hook for Pogamut's core developers
to finalize initialization of various modules. |
Initialize |
getInitializeCommand()
This method is called after handshake with GameBots2004 is over and the GameBots2004 is awaiting the INIT command (Initialize class). |
java.util.logging.Logger |
getLog()
Returns user log of the controller. |
PasswordReply |
getPassword()
Returns password that should be used to access the GameBots2004 server. |
void |
initializeController(BOT bot)
Called during the construction of the UT2004Bot before the GameBots2004 greets the bot even before
prepareBot(UT2004Bot) method. |
void |
prepareBot(BOT bot)
Called during the construction of the UT2004Bot before the GameBots2004 greets the bot. |
Method Detail |
---|
java.util.logging.Logger getLog()
void initializeController(BOT bot)
UT2004Bot
before the GameBots2004 greets the bot even before
prepareBot(UT2004Bot)
method.
NOTE: This is Pogamut's developers reserved method - do not override it and if you do, always use 'super' to call parent's initializeController.
void prepareBot(BOT bot)
UT2004Bot
before the GameBots2004 greets the bot.
PasswordReply getPassword()
Called only if the bot is challenged by the password request.
Initialize getInitializeCommand()
void botInitialized(GameInfo gameInfo, ConfigChange currentConfig, InitedMessage init)
InitedMessage
is received. Various agent modules are usable since this
method is called.
gameInfo
- config
- init
- self
- void botSpawned(GameInfo gameInfo, ConfigChange currentConfig, InitedMessage init, Self self)
Note that this method has advantage over the botInitialized(GameInfo, ConfigChange, InitedMessage)
that you already have Self
object.
gameInfo
- config
- init
- self
- void finishControllerInitialization()
botSpawned(GameInfo, ConfigChange, InitedMessage, Self)
as a hook for Pogamut's core developers
to finalize initialization of various modules.
NOTE: This is Pogamut's developers reserved method - do not override it and if you do, always use 'super' to call parent's finishControllerInitialization.
void botKilled(BotKilled event)
event
- void botShutdown()
Use the method to save your work / data collected during the run of the agent.
Pogamut's guarantee that this method is called even if exception happens inside your previous code.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |