cz.cuni.amis.pogamut.ut2004.bot.impl
Class NativeUT2004BotAdapter

java.lang.Object
  extended by cz.cuni.amis.pogamut.unreal.bot.impl.NativeUnrealBotAdapter
      extended by cz.cuni.amis.pogamut.ut2004.bot.impl.NativeUT2004BotAdapter
All Implemented Interfaces:
IAgent, IEmbodiedAgent, IObservingAgent, IComponent, IComponentAware, IControllable, IAgent3D, ILocated, ILocomotive, IRotable, IUnrealBot

public class NativeUT2004BotAdapter
extends NativeUnrealBotAdapter


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.unreal.bot.impl.NativeUnrealBotAdapter
act, player, server, worldView
 
Constructor Summary
NativeUT2004BotAdapter(Player player, IUnrealServer server, IAct act, IWorldView worldView)
           
 
Method Summary
 void respawn()
          Restarts the bot in the game.
 void stop()
          Attempt to stop the agent, usually meaning dropping all running flags and see whether it will stop automatically.
 
Methods inherited from class cz.cuni.amis.pogamut.unreal.bot.impl.NativeUnrealBotAdapter
equals, getAct, getComponentId, getEventBus, getIntrospection, getLocation, getLogger, getName, getRotation, getState, getVelocity, getWorldView, hashCode, kill, pause, resume, start, startPaused
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeUT2004BotAdapter

public NativeUT2004BotAdapter(Player player,
                              IUnrealServer server,
                              IAct act,
                              IWorldView worldView)
Method Detail

respawn

public void respawn()
             throws PogamutException
Description copied from interface: IUnrealBot
Restarts the bot in the game. Issues RESPAWN command.

Throws:
PogamutException

stop

public void stop()
          throws ComponentCantStopException
Description copied from interface: IAgent
Attempt to stop the agent, usually meaning dropping all running flags and see whether it will stop automatically. This method may be blocking. If it does not throw the exception, the agent has been successfully stopped, also the state of the agent is changed into End state.

If the stop can not complete - it must automatically call kill() method.

Throws:
ComponentCantStopException