|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT> cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot> cz.cuni.amis.pogamut.ut2004.bot.command.BotCommands cz.cuni.amis.pogamut.ut2004.bot.command.Action
public class Action
Class providing Pogamut2 UT2004 bot action commands - throwing weapon, issuing combos, item interactions and other commands that didn't fit in other categories.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule |
---|
act, worldView |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
agent, controller, eventBus, log |
Constructor Summary | |
---|---|
Action(UT2004Bot agent,
java.util.logging.Logger log)
Constructor. |
Method Summary | |
---|---|
void |
pick(UnrealId id)
If the items are set to be picked up manualy, this command can be used to pick up the items. |
void |
playAnimation(java.lang.String animName)
This command can be used to play some available bot animation. |
void |
respawn()
This function will kill the bot and force him to respawn. |
void |
respawn(ILocated location)
This function will kill the bot and force him to respawn. |
void |
respawn(ILocated location,
Rotation rotation)
This function will kill the bot and force him to respawn. |
void |
startCombo(java.lang.String desiredCombo)
Causes bot to perform desired adrenaline combo (only if it has enough adrenaline usually >= 100). |
void |
throwWeapon()
Throws out bots current weapon (just if he is allowed to throw this kind of weapon out - some weapons cannot be thrown e.g. |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Action(UT2004Bot agent, java.util.logging.Logger log)
agent
- AbstractUT2004Bot we will send commands forlog
- Logger to be used for logging runtime/debug info.Method Detail |
---|
public void startCombo(java.lang.String desiredCombo)
desiredCombo
- Holds the class name of the desired adrenaline combo (can be
xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis or
xGame.ComboSpeed).public void throwWeapon()
public void respawn()
respawn(ILocated)
,
respawn(ILocated,Rotation)
public void respawn(ILocated location)
location
- Bot will be respawned at this location (if he can). Be
carefull may kill players this way. Usefull when wanted to
specify NavPoint you want the bot to have respawned at.respawn()
,
respawn(ILocated,Rotation)
public void respawn(ILocated location, Rotation rotation)
location
- Location where the bot will be respawned.rotation
- Initial rotation of the bot.respawn()
,
respawn(ILocated)
public void pick(UnrealId id)
id
- UnrealId of the item we want to pick up.public void playAnimation(java.lang.String animName)
animName
- name of the animation we want to run
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |