nl.tudelft.goal.emohawk.agent
Class EmohawkBotBehavior

Package class diagram package EmohawkBotBehavior
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT>
      extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
          extended by cz.cuni.amis.pogamut.emohawk.bot.impl.EmohawkBotController<UT2004Bot>
              extended by 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
 
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
EmohawkBotBehavior()
           
 
Method Summary
 void addAction(Action action)
          Queues up the action to be executed on the first evaluation of the logic cycle.
 void botShutdown()
           
 void emote(EmoticonType left, EmoticonType center, EmoticonType right)
           
 Collection<EmoticonType> emoticon()
           
 Map<Method,Object> getAllPercepts()
          Returns a previously prepared batch of percepts.
 Initialize getInitializeCommand()
          Prepares the initialization message for Gamebots using the BotParameters provided to the UT2004BotRunner.
 void initializeController(UT2004Bot bot)
           
protected  void initializeModules(UT2004Bot bot)
           
 void jump()
           
 void logic()
           
 String navigation()
           
 List<Percept> perceptNavPoints()
           
 Collection<Percept> person()
           
 Collection<Place> place()
           
 void runTo(UnrealIdOrLocation destination)
           
 Percept self()
           
 void skip()
           
 void stop()
           
 void turn(int amount)
           
 void turnTo(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
           
 void walkAlong(Player partner)
           
 void walkTo(UnrealIdOrLocation destination)
           
 
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 cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController
beforeFirstLogic, getLogicInitializeTime, getLogicShutdownTime, initializeLogic, logicInitialize, logicShutdown
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController
botFirstSpawn, botInitialized, botKilled, 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, botInitialized, botKilled, getAct, getBot, getLog, getPassword, getWorldView, prepareBot
 

Field Detail

percepts

protected eis.eis2java.util.AllPerceptsModule percepts
Constructor Detail

EmohawkBotBehavior

public EmohawkBotBehavior()
Method Detail

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.