cz.cuni.amis.pogamut.unreal.bot.impl
Class NativeUnrealBotAdapter

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

public abstract class NativeUnrealBotAdapter
extends Object
implements IUnrealBot

IUnrealAgent adapter for native players. Not all operations are supported.

Author:
ik

Field Summary
protected  IAct act
           
protected  IPlayer player
           
protected  IUnrealServer server
           
protected  IWorldView worldView
           
 
Constructor Summary
NativeUnrealBotAdapter(IPlayer player, IUnrealServer server, IAct act, IWorldView worldView)
           
 
Method Summary
 boolean equals(Object other)
           
 IAct getAct()
           
 IAgentId getComponentId()
           
 IComponentBus getEventBus()
           
 cz.cuni.amis.introspection.Folder getIntrospection()
           
 Location getLocation()
           
 IAgentLogger getLogger()
           
 String getName()
           
 Rotation getRotation()
           
 cz.cuni.amis.utils.flag.ImmutableFlag<IAgentState> getState()
           
 Velocity getVelocity()
           
 IWorldView getWorldView()
           
 int hashCode()
           
 void kill()
           
 void pause()
           
 void resume()
           
 void start()
           
 void startPaused()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.unreal.bot.IUnrealBot
respawn
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent
stop
 

Field Detail

player

protected IPlayer player

server

protected IUnrealServer server

act

protected IAct act

worldView

protected IWorldView worldView
Constructor Detail

NativeUnrealBotAdapter

public NativeUnrealBotAdapter(IPlayer player,
                              IUnrealServer server,
                              IAct act,
                              IWorldView worldView)
Method Detail

getAct

public IAct getAct()
Specified by:
getAct in interface IEmbodiedAgent

getWorldView

public IWorldView getWorldView()
Specified by:
getWorldView in interface IObservingAgent

getComponentId

public IAgentId getComponentId()
Specified by:
getComponentId in interface IAgent
Specified by:
getComponentId in interface IComponent

getName

public String getName()
Specified by:
getName in interface IAgent

getLogger

public IAgentLogger getLogger()
Specified by:
getLogger in interface IAgent

getEventBus

public IComponentBus getEventBus()
Specified by:
getEventBus in interface IComponentAware

getState

public cz.cuni.amis.utils.flag.ImmutableFlag<IAgentState> getState()
Specified by:
getState in interface IAgent

start

public void start()
           throws AgentException
Specified by:
start in interface IAgent
Specified by:
start in interface IControllable
Throws:
AgentException

startPaused

public void startPaused()
                 throws AgentException
Specified by:
startPaused in interface IAgent
Throws:
AgentException

pause

public void pause()
           throws AgentException
Specified by:
pause in interface IAgent
Throws:
AgentException

resume

public void resume()
            throws AgentException
Specified by:
resume in interface IAgent
Throws:
AgentException

kill

public void kill()
Specified by:
kill in interface IAgent
Specified by:
kill in interface IControllable

getIntrospection

public cz.cuni.amis.introspection.Folder getIntrospection()
Specified by:
getIntrospection in interface IAgent

getLocation

public Location getLocation()
Specified by:
getLocation in interface ILocated

getVelocity

public Velocity getVelocity()
Specified by:
getVelocity in interface ILocomotive

getRotation

public Rotation getRotation()
Specified by:
getRotation in interface IRotable

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.