nl.tudelft.goal.emohawk.agent
Class EmohawkBotBehavior
java.lang.Object
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT>
cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
cz.cuni.amis.pogamut.emohawk.bot.impl.EmohawkBotController<UT2004Bot>
nl.tudelft.goal.emohawk.agent.EmohawkBotBehavior
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule>, IUT2004BotController<UT2004Bot>, IUT2004BotLogicController<UT2004Bot,cz.cuni.amis.pogamut.base.agent.module.LogicModule>, eis.eis2java.util.AllPerceptsProvider
public class EmohawkBotBehavior
- extends EmohawkBotController<UT2004Bot>
- implements eis.eis2java.util.AllPerceptsProvider
Field Summary |
protected eis.eis2java.util.AllPerceptsModule |
percepts
|
Fields inherited from class cz.cuni.amis.pogamut.emohawk.bot.impl.EmohawkBotController |
act, animations, comm, config, emohawkNavigation, emoticons, fwMap, game, getBackToNavGraph, info, inventory, listenerRegistrator, move, navigation, pathExecutor, pathPlanner, places, players, random, raycasting, runStraight, senses, stats, steering, world |
Methods inherited from class cz.cuni.amis.pogamut.emohawk.bot.impl.EmohawkBotController |
finishControllerInitialization, getConfig, getFwMap, getGame, getInfo, getMove, getNavigation, getPathExecutor, getPathPlanner, getPlayers, getRandom, getRaycasting, getSenses, getStats, getWorld, initializeListeners, initializePathFinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
percepts
protected eis.eis2java.util.AllPerceptsModule percepts
EmohawkBotBehavior
public EmohawkBotBehavior()
initializeController
public void initializeController(UT2004Bot bot)
- Specified by:
initializeController
in interface IUT2004BotController<UT2004Bot>
- Overrides:
initializeController
in class EmohawkBotController<UT2004Bot>
initializeModules
protected void initializeModules(UT2004Bot bot)
- Overrides:
initializeModules
in class EmohawkBotController<UT2004Bot>
getInitializeCommand
public Initialize getInitializeCommand()
- Prepares the initialization message for Gamebots using the
BotParameters
provided to the UT2004BotRunner
.
- Specified by:
getInitializeCommand
in interface IUT2004BotController<UT2004Bot>
- Overrides:
getInitializeCommand
in class UT2004BotController<UT2004Bot>
logic
public void logic()
throws cz.cuni.amis.utils.exception.PogamutException
- Specified by:
logic
in interface cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule>
- Overrides:
logic
in class UT2004BotLogicController<UT2004Bot>
- Throws:
cz.cuni.amis.utils.exception.PogamutException
botShutdown
public void botShutdown()
- Specified by:
botShutdown
in interface IUT2004BotController<UT2004Bot>
- Overrides:
botShutdown
in class UT2004BotController<UT2004Bot>
navigation
public String navigation()
perceptNavPoints
public List<Percept> perceptNavPoints()
person
public Collection<Percept> person()
self
public Percept self()
emoticon
public Collection<EmoticonType> emoticon()
place
public Collection<Place> place()
getAllPercepts
public Map<Method,Object> getAllPercepts()
- Returns a previously prepared batch of percepts.
- Specified by:
getAllPercepts
in interface eis.eis2java.util.AllPerceptsProvider
- Returns:
- a previously prepared batch of percepts.
stop
public void stop()
runTo
public void runTo(UnrealIdOrLocation destination)
walkTo
public void walkTo(UnrealIdOrLocation destination)
walkAlong
public void walkAlong(Player partner)
throws eis.exceptions.ActException
- Throws:
eis.exceptions.ActException
emote
public void emote(EmoticonType left,
EmoticonType center,
EmoticonType right)
throws eis.exceptions.ActException
- Throws:
eis.exceptions.ActException
turn
public void turn(int amount)
throws eis.exceptions.ActException
- Throws:
eis.exceptions.ActException
turnTo
public void turnTo(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
throws eis.exceptions.ActException
- Throws:
eis.exceptions.ActException
jump
public void jump()
throws eis.exceptions.ActException
- Throws:
eis.exceptions.ActException
skip
public void skip()
throws eis.exceptions.ActException
- Throws:
eis.exceptions.ActException
addAction
public void addAction(Action action)
- Queues up the action to be executed on the first evaluation of the logic
cycle.
- Parameters:
action
-
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.