nl.tudelft.goal.ut2004.visualizer.map
Class ProxyRenderablePlayer

Package class diagram package ProxyRenderablePlayer
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.map.ProxyRenderablePlayer
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.agent.IAgent, cz.cuni.amis.pogamut.base.agent.IEmbodiedAgent, cz.cuni.amis.pogamut.base.agent.IObservingAgent, cz.cuni.amis.pogamut.base.component.IComponent, cz.cuni.amis.pogamut.base.component.IComponentAware, cz.cuni.amis.pogamut.base.component.IControllable, cz.cuni.amis.pogamut.base3d.agent.IAgent3D, cz.cuni.amis.pogamut.base3d.worldview.object.ILocated, cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive, cz.cuni.amis.pogamut.base3d.worldview.object.IRotable, cz.cuni.amis.pogamut.unreal.bot.IUnrealBot, IRenderableUTAgent, IRenderableWorldObject

public class ProxyRenderablePlayer
extends Object
implements IRenderableUTAgent


Constructor Summary
ProxyRenderablePlayer(cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer agent, MapColorGenerator.MapColor color, int glName)
           
 
Method Summary
 cz.cuni.amis.pogamut.base.communication.command.IAct getAct()
           
 List<String> getAssociatedInfo()
          Return text info associated with the agent.
 Color getColor()
          Get color of agent.
 cz.cuni.amis.pogamut.base.agent.IAgentId getComponentId()
           
 Object getDataSource()
          Return source of all data that are providing stuff used.
 cz.cuni.amis.pogamut.base.component.bus.IComponentBus getEventBus()
           
 int getGLName()
          Return OpenGl name used for selection (see selction mode of opengl).
 cz.cuni.amis.introspection.Folder getIntrospection()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
           
 cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger getLogger()
           
 String getName()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
           
 cz.cuni.amis.utils.flag.ImmutableFlag<cz.cuni.amis.pogamut.base.agent.state.level0.IAgentState> getState()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
           
 cz.cuni.amis.pogamut.base.communication.worldview.IWorldView getWorldView()
           
 void kill()
           
 void pause()
           
 void respawn()
           
 void resume()
           
 void start()
           
 void startPaused()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyRenderablePlayer

public ProxyRenderablePlayer(cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer agent,
                             MapColorGenerator.MapColor color,
                             int glName)
Method Detail

respawn

public void respawn()
             throws cz.cuni.amis.utils.exception.PogamutException
Specified by:
respawn in interface cz.cuni.amis.pogamut.unreal.bot.IUnrealBot
Throws:
cz.cuni.amis.utils.exception.PogamutException

getAct

public cz.cuni.amis.pogamut.base.communication.command.IAct getAct()
Specified by:
getAct in interface cz.cuni.amis.pogamut.base.agent.IEmbodiedAgent

getWorldView

public cz.cuni.amis.pogamut.base.communication.worldview.IWorldView getWorldView()
Specified by:
getWorldView in interface cz.cuni.amis.pogamut.base.agent.IObservingAgent

getName

public String getName()
Specified by:
getName in interface cz.cuni.amis.pogamut.base.agent.IAgent

getComponentId

public cz.cuni.amis.pogamut.base.agent.IAgentId getComponentId()
Specified by:
getComponentId in interface cz.cuni.amis.pogamut.base.agent.IAgent
Specified by:
getComponentId in interface cz.cuni.amis.pogamut.base.component.IComponent

getLogger

public cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger getLogger()
Specified by:
getLogger in interface cz.cuni.amis.pogamut.base.agent.IAgent

getState

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

getIntrospection

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

start

public void start()
           throws cz.cuni.amis.pogamut.base.component.exception.ComponentCantStartException
Specified by:
start in interface cz.cuni.amis.pogamut.base.agent.IAgent
Specified by:
start in interface cz.cuni.amis.pogamut.base.component.IControllable
Throws:
cz.cuni.amis.pogamut.base.component.exception.ComponentCantStartException

startPaused

public void startPaused()
                 throws cz.cuni.amis.pogamut.base.component.exception.ComponentCantStartException
Specified by:
startPaused in interface cz.cuni.amis.pogamut.base.agent.IAgent
Throws:
cz.cuni.amis.pogamut.base.component.exception.ComponentCantStartException

pause

public void pause()
           throws cz.cuni.amis.pogamut.base.component.exception.ComponentCantPauseException
Specified by:
pause in interface cz.cuni.amis.pogamut.base.agent.IAgent
Throws:
cz.cuni.amis.pogamut.base.component.exception.ComponentCantPauseException

resume

public void resume()
            throws cz.cuni.amis.pogamut.base.component.exception.ComponentCantResumeException
Specified by:
resume in interface cz.cuni.amis.pogamut.base.agent.IAgent
Throws:
cz.cuni.amis.pogamut.base.component.exception.ComponentCantResumeException

stop

public void stop()
          throws cz.cuni.amis.pogamut.base.component.exception.ComponentCantStopException
Specified by:
stop in interface cz.cuni.amis.pogamut.base.agent.IAgent
Specified by:
stop in interface cz.cuni.amis.pogamut.base.component.IControllable
Throws:
cz.cuni.amis.pogamut.base.component.exception.ComponentCantStopException

kill

public void kill()
Specified by:
kill in interface cz.cuni.amis.pogamut.base.agent.IAgent
Specified by:
kill in interface cz.cuni.amis.pogamut.base.component.IControllable

getEventBus

public cz.cuni.amis.pogamut.base.component.bus.IComponentBus getEventBus()
Specified by:
getEventBus in interface cz.cuni.amis.pogamut.base.component.IComponentAware

getLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
Specified by:
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated

getVelocity

public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
Specified by:
getVelocity in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive

getRotation

public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
Specified by:
getRotation in interface cz.cuni.amis.pogamut.base3d.worldview.object.IRotable

getColor

public Color getColor()
Description copied from interface: IRenderableUTAgent
Get color of agent. It should not change if possible, otherwise it can confuse a user.

Specified by:
getColor in interface IRenderableUTAgent
Specified by:
getColor in interface IRenderableWorldObject
Returns:
Color that will be used to render agent in map.

getAssociatedInfo

public List<String> getAssociatedInfo()
Description copied from interface: IRenderableUTAgent
Return text info associated with the agent. Agent can have multiple infos associated (e.g. current state, like "I am in water" and "I am looking for ammo")

Specified by:
getAssociatedInfo in interface IRenderableUTAgent
Returns:
List of infos about the agent.

getDataSource

public Object getDataSource()
Description copied from interface: IRenderableUTAgent
Return source of all data that are providing stuff used. Why do I want it? The selection, I am putting this stuff to lookup and some other component can look it up and select nodes representing data sources. XXX: return type should be more general, but this saves trouble and no need to generalize too soon.

Specified by:
getDataSource in interface IRenderableUTAgent
Specified by:
getDataSource in interface IRenderableWorldObject

getGLName

public int getGLName()
Description copied from interface: IRenderableUTAgent
Return OpenGl name used for selection (see selction mode of opengl). Basically after all is rendered, whe get glNames(ints) of objects that were rendered in viewvolume. But we need to map it back. That is what this is for.

Specified by:
getGLName in interface IRenderableUTAgent
Specified by:
getGLName in interface IRenderableWorldObject
Returns:


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