Eris  1.3.23
IGRouter.h
1 #ifndef ERIS_IG_ROUTER_H
2 #define ERIS_IG_ROUTER_H
3 
4 #include <Eris/Router.h>
5 
6 namespace Eris {
7 
8 // forward decls
9 class Avatar;
10 class View;
11 class TypeInfo;
12 
13 class IGRouter : public Router
14 {
15 public:
16  IGRouter(Avatar* av);
17  virtual ~IGRouter();
18 
19 protected:
20  virtual RouterResult handleOperation(const Atlas::Objects::Operation::RootOperation& op);
21 
22 private:
23  RouterResult handleSightOp(const Atlas::Objects::Operation::RootOperation& op);
24 
25  Avatar* m_avatar;
26  View* m_view;
27  TypeInfo* m_actionType;
28 };
29 
30 } // of namespace Eris
31 
32 #endif // of ERIS_IG_ROUTER_H
Eris::IGRouter
Definition: IGRouter.h:13
Eris::Avatar::updateWorldTime
void updateWorldTime(double t)
called by the IG router for each op it sees with a valid 'seconds' attribute set.
Definition: Avatar.cpp:406
Eris::Router
abstract interface for objects that can route Atlas data.
Definition: Router.h:10
Eris::Avatar
The player's avatar representation.
Definition: Avatar.h:31
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::View::isPending
bool isPending(const std::string &eid) const
test if the specified entity ID is pending initial sight on the View
Definition: View.cpp:356
Eris::TypeInfo
The representation of an Atlas type (i.e a class or operation definition).
Definition: TypeInfo.h:37
Eris::Avatar::getId
const std::string & getId() const
Get the Entity id of this Avatar.
Definition: Avatar.h:258
Eris::Avatar::logoutRequested
void logoutRequested()
Called when a logout of the avatar has been requested by the server.
Definition: Avatar.cpp:445
Eris::View::getEntity
Entity * getEntity(const std::string &eid) const
Retrieve an entity in the view by id.
Definition: View.cpp:53
Eris::View
View encapsulates the set of entities currently visible to an Avatar, as well as those that have rece...
Definition: View.h:33
Eris::Entity::onAction
virtual void onAction(const Atlas::Objects::Operation::RootOperation &act)
Over-rideable hook when this entity is seen to perform an action.
Definition: Entity.cpp:327