Eris  1.3.23
EntityRouter.h
1 #include <Eris/Router.h>
2 
3 namespace Eris
4 {
5 
6 class ViewEntity;
7 class TypeService;
8 
9 class EntityRouter : public Router
10 {
11 public:
13  virtual ~EntityRouter();
14 
15 protected:
16  virtual RouterResult handleOperation(const Atlas::Objects::Operation::RootOperation&);
17 
18 private:
19  RouterResult handleSightOp(const Atlas::Objects::Operation::RootOperation&);
20 
21  TypeService* typeService();
22 
23  ViewEntity* m_entity;
24 };
25 
26 }
Eris::ViewEntity
An entity which is bound to an Eris::View.
Definition: ViewEntity.h:21
Eris::Entity::setLocationFromAtlas
void setLocationFromAtlas(const std::string &locId)
update the entity's location based on Atlas data.
Definition: Entity.cpp:626
Eris::TypeService
A service class querying and caching types.
Definition: TypeService.h:24
Eris::ViewEntity::onSoundAction
virtual void onSoundAction(const Atlas::Objects::Operation::RootOperation &op)
Over-rideable hook when this entity is heard performing an action.
Definition: ViewEntity.cpp:41
Eris::ViewEntity::getView
virtual View * getView() const
Gets the view to which this entity belongs, if any.
Definition: ViewEntity.h:83
Eris::Router
abstract interface for objects that can route Atlas data.
Definition: Router.h:10
Eris::Entity::setFromRoot
void setFromRoot(const Atlas::Objects::Root &obj, bool allowMotion, bool includeTypeInfoAttributes=false)
Initialise all simple state from a Root.
Definition: Entity.cpp:265
Eris::Entity::getId
const std::string & getId() const
Retrieve the unique entity ID.
Definition: Entity.h:604
Eris::TypeService::getTypeForAtlas
TypeInfoPtr getTypeForAtlas(const Atlas::Objects::Root &obj)
retrive the TypeInfo for an object; this should be faster (hopefully constant time) since it can take...
Definition: TypeService.cpp:76
Eris::ViewEntity::onTalk
virtual void onTalk(const Atlas::Objects::Operation::RootOperation &talk)
process TALK data - default implementation emits the Say signal.
Definition: ViewEntity.cpp:36
Eris::Entity::onImaginary
virtual void onImaginary(const Atlas::Objects::Root &act)
Over-rideable hook when this entity is seen to emit an imginary op.
Definition: Entity.cpp:337
Eris::EntityRouter
Definition: EntityRouter.h:9