public class PreyBehaviour extends UT2004Behaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>
act, body, config, descriptors, fwMap, game, getBackToNavGraph, info, items, listenerRegistrator, log, move, navBuilder, navigation, pathExecutor, pathPlanner, players, random, raycasting, runStraight, senses, shoot, stats, user, visibility, weaponPrefs, weaponry, world| Constructor and Description |
|---|
PreyBehaviour(String name,
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot bot) |
| Modifier and Type | Method and Description |
|---|---|
void |
botInitialized(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo info,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange config,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage init)
|
void |
botKilled(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BotKilled event)
Called every time this bot dies from
PreyLogic.botKilled(BotKilled). |
void |
botSpawned(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,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Self self)
Called from
PreyLogic#botSpawned(GameInfo, ConfigChange, InitedMessage, Self). |
cz.cuni.amis.pogamut.sposh.executor.ActionResult |
doNothing()
Standard action that has to be implemented everywhere.
|
boolean |
fail()
Standard sense that has to be implemented everywhere.
|
int |
health()
Get health of bot
|
boolean |
hitWall()
hitWall sense, used when bot bumps into wall due to
errors in pathfinding (like railing)
|
void |
itemPickedUpListener(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemPickedUp event) |
void |
itemUpdated(cz.cuni.amis.pogamut.base.communication.worldview.object.event.WorldObjectUpdatedEvent<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Item> itemEvent) |
boolean |
jump() |
void |
logicAfterPlan()
This method can be used to execute anything that needs to be done AFTER the plan evaluation takes place.
|
void |
logicBeforePlan()
This method can be used to execute anything that needs to be done BEFORE the plan evaluation takes place.
|
protected void |
prepareBehaviour(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot bot)
Called from
PreyLogic.prepareBot(UT2004Bot). |
cz.cuni.amis.pogamut.sposh.executor.ActionResult |
runMedkits()
Run from one health vial to another using list of health vials.
|
boolean |
succeed()
Standard sense that has to be implemented everywhere.
|
finishBehaviourInitialization, getAct, getGetBackToNavGraph, getVisibility, getWorldView, initializeBehaviour, initializeListeners, initializeModules, initializePathFindingpublic PreyBehaviour(String name, cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot bot)
protected void prepareBehaviour(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot bot)
PreyLogic.prepareBot(UT2004Bot).prepareBehaviour in class UT2004Behaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public void botInitialized(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo info,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange config,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage init)
botInitialized in class UT2004Behaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public void botSpawned(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,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Self self)
PreyLogic#botSpawned(GameInfo, ConfigChange, InitedMessage, Self).botSpawned in class UT2004Behaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public void botKilled(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BotKilled event)
PreyLogic.botKilled(BotKilled).botKilled in class UT2004Behaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public void itemPickedUpListener(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemPickedUp event)
public void itemUpdated(cz.cuni.amis.pogamut.base.communication.worldview.object.event.WorldObjectUpdatedEvent<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Item> itemEvent)
public boolean hitWall()
public int health()
public boolean fail()
fail in class cz.cuni.amis.pogamut.sposh.JavaBehaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public boolean succeed()
succeed in class cz.cuni.amis.pogamut.sposh.JavaBehaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public cz.cuni.amis.pogamut.sposh.executor.ActionResult doNothing()
doNothing in class cz.cuni.amis.pogamut.sposh.JavaBehaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public cz.cuni.amis.pogamut.sposh.executor.ActionResult runMedkits()
public boolean jump()
public void logicBeforePlan()
UT2004BotLogicController.logic()
method.logicBeforePlan in class cz.cuni.amis.pogamut.sposh.JavaBehaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>public void logicAfterPlan()
UT2004BotLogicController.logic()
method.logicAfterPlan in class cz.cuni.amis.pogamut.sposh.JavaBehaviour<cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.