public class EmotionalBot
extends cz.cuni.amis.pogamut.ut2004.bot.impl.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<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.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, world| Constructor and Description |
|---|
EmotionalBot() |
| Modifier and Type | Method and Description |
|---|---|
void |
botInitialized(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo gameInfo,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange config,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage init)
The bot is initilized in the environment - a physical representation of the
bot is present in the game.
|
void |
botKilled(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BotKilled event)
Called each time our bot die.
|
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.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(cz.cuni.amis.pogamut.ut2004.bot.impl.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, 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<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BeginMessage> myBegListener
public cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Initialize getInitializeCommand()
getInitializeCommand in interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotControllergetInitializeCommand in class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotControllerpublic void prepareBot(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot bot)
prepareBot in interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotControllerprepareBot in class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotControllerpublic void botInitialized(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo gameInfo,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange config,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage init)
botInitialized in interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotControllerbotInitialized in class cz.cuni.amis.pogamut.ut2004.bot.impl.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 cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicControllercz.cuni.amis.pogamut.base.exceptions.PogamutExceptioncz.cuni.amis.utils.exception.PogamutExceptionpublic void botKilled(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BotKilled event)
botKilled in interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotControllerbotKilled in class cz.cuni.amis.pogamut.ut2004.bot.impl.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.