1 #ifndef ERIS_VIEW_ENTITY_H_
2 #define ERIS_VIEW_ENTITY_H_
4 #include <Eris/Entity.h>
57 virtual void onTalk(
const Atlas::Objects::Operation::RootOperation& talk);
60 const Atlas::Objects::Operation::RootOperation& op);
virtual void addToMovementPredition()
Adds the entity to any movement prediction service.
Definition: ViewEntity.cpp:57
EntityRouter * m_router
A router instance which routes messages from the view into this entity.
Definition: ViewEntity.h:55
An entity which is bound to an Eris::View.
Definition: ViewEntity.h:21
View * m_view
The View which owns this Entity.
Definition: ViewEntity.h:49
virtual void onSoundAction(const Atlas::Objects::Operation::RootOperation &op)
Over-rideable hook when this entity is heard performing an action.
Definition: Entity.cpp:332
virtual void onVisibilityChanged(bool vis)
over-rideable hook when the actual (computed) visiblity of this entity changed.
Definition: ViewEntity.cpp:47
void task_ProgressRateChanged(Task *task)
Listen to task progress rates updates and send to the view.
Definition: ViewEntity.cpp:78
Entity is a concrete (instantiable) class representing one game entity.
Definition: Entity.h:58
const std::string m_id
the Atlas object ID
Definition: Entity.h:549
virtual void shutdown()
Shuts down the entity.
Definition: ViewEntity.cpp:24
virtual TypeService * getTypeService() const
Gets the typeservice used throughout the Eris system.
Definition: ViewEntity.cpp:32
A service class querying and caching types.
Definition: TypeService.h:25
virtual void onSoundAction(const Atlas::Objects::Operation::RootOperation &op)
Over-rideable hook when this entity is heard performing an action.
Definition: ViewEntity.cpp:41
virtual View * getView() const
Gets the view to which this entity belongs, if any.
Definition: ViewEntity.h:83
void taskRateChanged(Task *)
Method to register and unregister tasks with with view, so they can have their progress updated autom...
Definition: View.cpp:126
virtual void onVisibilityChanged(bool vis)
over-rideable hook when the actual (computed) visiblity of this entity changed.
Definition: Entity.cpp:822
sigc::signal< void, Entity *, const Atlas::Objects::Operation::RootOperation & > Hear
emitted when this Avatar hears something.
Definition: Avatar.h:185
void entityDeleted(Entity *ent)
this is a hook that Entity's destructor calls to remove itself from the View's content map.
Definition: View.cpp:444
virtual void onTaskAdded(Task *task)
Over-rideable hook for when tasks are added.
Definition: Entity.cpp:372
virtual Entity * getEntity(const std::string &id)
Gets an entity with the supplied id from the system.
Definition: ViewEntity.cpp:61
virtual void onTalk(const Atlas::Objects::Operation::RootOperation &talk)
process TALK data - default implementation emits the Say signal.
Definition: ViewEntity.cpp:36
virtual void onTaskAdded(Task *task)
Over-rideable hook for when tasks are added.
Definition: ViewEntity.cpp:72
The representation of an Atlas type (i.e a class or operation definition).
Definition: TypeInfo.h:38
virtual void removeFromMovementPrediction()
Removes the entity from any movement prediction service.
Definition: ViewEntity.cpp:53
Entity * getEntity(const std::string &eid) const
Retrieve an entity in the view by id.
Definition: View.cpp:53
virtual void onTalk(const Atlas::Objects::Operation::RootOperation &talk)
process TALK data - default implementation emits the Say signal.
Definition: Entity.cpp:304
View encapsulates the set of entities currently visible to an Avatar, as well as those that have rece...
Definition: View.h:34
virtual void shutdown()
Shuts down the entity.
Definition: Entity.cpp:65
ViewEntity(const std::string &id, TypeInfo *ty, View *view)
Ctor.
Definition: ViewEntity.cpp:14
Definition: EntityRouter.h:10