|
|||||||||
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.SimpleShooting
public class SimpleShooting
Class providing Pogamut2 UT2004 simple shooting commands for the bot
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 | |
---|---|
SimpleShooting(UT2004Bot agent,
java.util.logging.Logger log)
Constructor. |
Method Summary | |
---|---|
void |
shoot()
Bot will start shooting his current weapon (Issues GB SHOOT command) |
void |
shoot(ILocated location)
Bot will start shooting his current weapon to a specified location (Issues GB SHOOT command). |
void |
shoot(Player target)
Bot will start shooting with his current weapon at the target provided. |
void |
shoot(UnrealId target)
Bot will start shooting with his current weapon at the target provided. |
void |
stopShoot()
Bot will stop shooting his current weapon (Issues GB STOPSHOOT command) |
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 SimpleShooting(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 shoot()
stopShoot()
,
shoot(UnrealId)
,
shoot(ILocated)
public void shoot(ILocated location)
location
- stopShoot()
,
shoot(UnrealId);
public void shoot(UnrealId target)
target
- Target (that should be ILocated) the bot will shoot at. Bot
will track the target, but see note above.stopShoot()
,
shoot()
public void shoot(Player target)
target
- Player the bot wants to shoot at.stopShoot()
,
shoot()
public void stopShoot()
shoot()
,
shoot(UnrealId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |