|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT>
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController
cz.cuni.amis.pogamut.ut2004.examples.botobserver.BotThatWillBeObserved
public class BotThatWillBeObserved
Simple navigation bot that will run around the environment & will be observed by BotObserver.
| Field Summary | |
|---|---|
protected UT2004PathAutoFixer |
autoFixer
Path auto fixer watches for navigation failures and if some navigation link is found to be unwalkable, it removes it from underlying navigation graph. |
protected TabooSet<NavPoint> |
tabooNavPoints
Taboo set is working as "black-list", that is you might add some NavPoints to it for a certain time, marking them as "unavailable". |
protected int |
talking
NavigationBot#talking state. |
protected NavPoint |
targetNavPoint
Current navigation point we're navigating to. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController |
|---|
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 |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController |
|---|
logicModule |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController |
|---|
bot, log, USER_LOG_CATEGORY_ID |
| Constructor Summary | |
|---|---|
BotThatWillBeObserved()
|
|
| Method Summary | |
|---|---|
void |
beforeFirstLogic()
This method is called only once right before actual logic() method is called for the first time. |
void |
botInitialized(GameInfo gameInfo,
ConfigChange config,
InitedMessage init)
The bot is initialized 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. |
protected NavPoint |
getRandomNavPoint()
Randomly picks some navigation point to head to. |
void |
logic()
Main method that controls the bot - makes decisions what to do next. |
static void |
main(String[] args)
Method that runs the bot standalone. |
protected void |
pathExecutorStateChange(cz.cuni.amis.pogamut.base.agent.navigation.PathExecutorState state)
Path executor has changed its state (note that UT2004BotModuleController.getPathExecutor()
is internally used by
UT2004BotModuleController.getNavigation() as well!). |
static void |
startBot()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController |
|---|
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, initializePathFinding |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController |
|---|
getLogicInitializeTime, getLogicShutdownTime, initializeLogic, logicInitialize, logicShutdown |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController |
|---|
botFirstSpawn, botShutdown, getAct, getBot, getLog, getPassword, getWorldView, prepareBot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotController |
|---|
botFirstSpawn, botShutdown, getAct, getBot, getLog, getPassword, getWorldView, prepareBot |
| Field Detail |
|---|
protected TabooSet<NavPoint> tabooNavPoints
protected NavPoint targetNavPoint
protected UT2004PathAutoFixer autoFixer
protected int talking
NavigationBot#talking state.
| Constructor Detail |
|---|
public BotThatWillBeObserved()
| Method Detail |
|---|
public Initialize getInitializeCommand()
getInitializeCommand in interface IUT2004BotControllergetInitializeCommand in class UT2004BotController
public void botInitialized(GameInfo gameInfo,
ConfigChange config,
InitedMessage init)
botInitialized in interface IUT2004BotControllerbotInitialized in class UT2004BotControllerconfig - information about configurationinit - information about configurationpublic void beforeFirstLogic()
beforeFirstLogic in interface cz.cuni.amis.pogamut.base.agent.module.IAgentLogicbeforeFirstLogic in class UT2004BotLogicControllerpublic void logic()
logic in interface cz.cuni.amis.pogamut.base.agent.module.IAgentLogiclogic in class UT2004BotLogicControllerpublic void botKilled(BotKilled event)
botKilled in interface IUT2004BotControllerbotKilled in class UT2004BotControllerevent - protected void pathExecutorStateChange(cz.cuni.amis.pogamut.base.agent.navigation.PathExecutorState state)
UT2004BotModuleController.getPathExecutor()
is internally used by
UT2004BotModuleController.getNavigation() as well!).
state - protected NavPoint getRandomNavPoint()
public static void startBot()
public static void main(String[] args)
throws cz.cuni.amis.utils.exception.PogamutException
args -
cz.cuni.amis.utils.exception.PogamutException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||