cz.cuni.amis.nb.pogamut.unreal.timeline.map
Interface IRenderableUTAgent

Package class diagram package IRenderableUTAgent
Type Parameters:
T - Type of object this object uses to get its data from
All Superinterfaces:
cz.cuni.amis.pogamut.base.agent.IAgent, cz.cuni.amis.pogamut.base3d.agent.IAgent3D, 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.base.agent.IEmbodiedAgent, cz.cuni.amis.pogamut.base3d.worldview.object.ILocated, cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive, cz.cuni.amis.pogamut.base.agent.IObservingAgent, cz.cuni.amis.pogamut.base3d.worldview.object.IRotable, cz.cuni.amis.pogamut.unreal.bot.IUnrealBot

public interface IRenderableUTAgent
extends cz.cuni.amis.pogamut.unreal.bot.IUnrealBot

This interface is used for passing info about agent to EntityRenderer. It is supposed to be unified interface for both timeline and overview map. Timeline implementation will provide available info at current time of db.

Author:
Honza

Method Summary
 List<String> getAssociatedInfo()
          Return text info associated with the agent.
 Color getColor()
          Get color of agent.
 Object getDataSource()
          Return source of all data that are providing stuff used.
 IFadeLine getFadeLine()
          Get fade line (line of past places the agent was).
 int getGLName()
          Return OpenGl name used for selection (see selction mode of opengl).
 List<MapEvent> getMapEvents()
          Return list of all map events this agent has at the time.
 
Methods inherited from interface cz.cuni.amis.pogamut.unreal.bot.IUnrealBot
respawn
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IEmbodiedAgent
getAct
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IObservingAgent
getWorldView
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware
getEventBus
 
Methods inherited from interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated
getLocation
 
Methods inherited from interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocomotive
getVelocity
 
Methods inherited from interface cz.cuni.amis.pogamut.base3d.worldview.object.IRotable
getRotation
 

Method Detail

getColor

Color getColor()
Get color of agent. It should not change if possible, otherwise it can confuse a user.

Returns:
Color that will be used to render agent in map.

getFadeLine

IFadeLine getFadeLine()
Get fade line (line of past places the agent was).

Returns:

getAssociatedInfo

List<String> getAssociatedInfo()
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")

Returns:
List of infos about the agent.

getMapEvents

List<MapEvent> getMapEvents()
Return list of all map events this agent has at the time. XXX: It is possible it would be better to provide List <ISubGLRenderer>s, but it would clash with model-view-control design pattern.

Returns:
List of map events belonging to this agent.

getDataSource

Object getDataSource()
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.


getGLName

int getGLName()
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.

Returns:


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