public class EmotionalBot extends UT2004BotModuleController
| Modifier and Type | Field and Description |
|---|---|
double |
currentTime
current UT2004 time
|
boolean |
isWalking
If the bot is walking or running
|
double |
lastMessageTime
Last time we sent message about our current emotional state
|
static double |
MESSAGE_DELAY
Delay between two emotional messages
|
protected ALMA |
myALMA
emotion engine
|
cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<BeginMessage> |
myBegListener
Listener to begin message, that will update currentTime for our agent.
|
protected EEventGenerator |
myEEventGenerator
event generator
|
String |
myName
desired name of our agent
|
act, body, combo, config, ctf, descriptors, fwMap, game, getBackToNavGraph, info, items, listenerRegistrator, move, navBuilder, navigation, pathExecutor, pathPlanner, players, random, raycasting, runStraight, senses, shoot, stats, visibility, weaponPrefs, weaponry, worldlogicModulebot, log, USER_LOG_CATEGORY_ID| Constructor and Description |
|---|
EmotionalBot() |
| Modifier and Type | Method and Description |
|---|---|
void |
botInitialized(GameInfo gameInfo,
ConfigChange config,
InitedMessage init)
The bot is initilized in the environment - a physical representation of the
bot is present in the game.
|
void |
botKilled(BotKilled event)
Called each time our bot die.
|
Initialize |
getInitializeCommand()
Here we can modify initializing command for our bot.
|
void |
logic()
Main method that controls the bot - makes decisions what to do next.
|
static void |
main(String[] args) |
void |
prepareBot(UT2004Bot bot) |
static String |
roundTwoDecimals(double d) |
finishControllerInitialization, getBody, getCombo, getConfig, getDescriptors, getFwMap, getGame, getInfo, getItems, getMove, getNavBuilder, getNavigation, getPathExecutor, getPathPlanner, getPlayers, getRandom, getRaycasting, getSenses, getShoot, getStats, getVisibility, getWeaponPrefs, getWeaponry, getWorld, initializeController, initializeListeners, initializeModules, initializePathFindingbeforeFirstLogic, getLogicInitializeTime, getLogicShutdownTime, initializeLogic, logicInitialize, logicShutdownbotFirstSpawn, botShutdown, getAct, getBot, getLog, getPassword, getWorldViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbotFirstSpawn, botShutdown, getAct, getBot, getLog, getPassword, getWorldViewpublic String myName
protected ALMA myALMA
protected EEventGenerator myEEventGenerator
public double currentTime
public boolean isWalking
public double lastMessageTime
public static final double MESSAGE_DELAY
public cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<BeginMessage> myBegListener
public Initialize getInitializeCommand()
getInitializeCommand in interface IUT2004BotControllergetInitializeCommand in class UT2004BotControllerpublic void prepareBot(UT2004Bot bot)
prepareBot in interface IUT2004BotControllerprepareBot in class UT2004BotControllerpublic void botInitialized(GameInfo gameInfo, ConfigChange config, InitedMessage init)
botInitialized in interface IUT2004BotControllerbotInitialized in class UT2004BotControllerconfig - information about configurationinit - information about configurationpublic void logic()
throws cz.cuni.amis.utils.exception.PogamutException
logic in interface cz.cuni.amis.pogamut.base.agent.module.IAgentLogiclogic in class UT2004BotLogicControllercz.cuni.amis.pogamut.base.exceptions.PogamutExceptioncz.cuni.amis.utils.exception.PogamutExceptionpublic void botKilled(BotKilled event)
botKilled in interface IUT2004BotControllerbotKilled in class UT2004BotControllerevent - public static String roundTwoDecimals(double d)
public static void main(String[] args) throws cz.cuni.amis.utils.exception.PogamutException
cz.cuni.amis.utils.exception.PogamutExceptionCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.