public class USAR2004BotController<BOT extends USAR2004Bot> extends Object implements IUSAR2004BotController<BOT>
| Modifier and Type | Field and Description |
|---|---|
protected BOT |
bot
Instance of the bot we're controlling.
|
protected cz.cuni.amis.pogamut.base.utils.logging.LogCategory |
log
Alias for user's log.
|
protected cz.cuni.amis.pogamut.base.utils.logging.LogCategory |
user
Deprecated.
use
UT2004BotController#log instead |
static String |
USER_LOG_CATEGORY_ID
Name of the log category of the user log.
|
| Constructor and Description |
|---|
USAR2004BotController() |
| Modifier and Type | Method and Description |
|---|---|
cz.cuni.amis.pogamut.base.communication.command.IAct |
getAct() |
cz.cuni.amis.pogamut.base.utils.logging.LogCategory |
getLog()
Returns user logger.
|
cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView |
getWorldView() |
void |
initializeController(BOT bot)
Called during the construction of the
UT2004Bot before the GameBots2004 greets the bot even before
IUT2004BotController#prepareBot(UT2004Bot) method. |
void |
prepareBot(USAR2004Bot bot)
Called during the construction of the
UT2004Bot before the GameBots2004 greets the bot. |
void |
robotInitialized(NfoMessage nfoMessage)
Called when first NFO message arrives.
|
public static final String USER_LOG_CATEGORY_ID
protected BOT extends USAR2004Bot bot
protected cz.cuni.amis.pogamut.base.utils.logging.LogCategory user
UT2004BotController#log insteadLevel.ALL.protected cz.cuni.amis.pogamut.base.utils.logging.LogCategory log
public void initializeController(BOT bot)
IUSAR2004BotControllerUT2004Bot before the GameBots2004 greets the bot even before
IUT2004BotController#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.
initializeController in interface IUSAR2004BotController<BOT extends USAR2004Bot>public void prepareBot(USAR2004Bot bot)
IUSAR2004BotControllerUT2004Bot before the GameBots2004 greets the bot.prepareBot in interface IUSAR2004BotController<BOT extends USAR2004Bot>public void robotInitialized(NfoMessage nfoMessage)
IUSAR2004BotControllerrobotInitialized in interface IUSAR2004BotController<BOT extends USAR2004Bot>public cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView getWorldView()
public cz.cuni.amis.pogamut.base.communication.command.IAct getAct()
public cz.cuni.amis.pogamut.base.utils.logging.LogCategory getLog()
bot.getLogger().getCategory(USER_LOG_ID).Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.