Eris  1.4.0
IGRouter.h
1 #ifndef ERIS_IG_ROUTER_H
2 #define ERIS_IG_ROUTER_H
3 
4 #include "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  explicit IGRouter(Avatar* av);
17 
18  ~IGRouter() override;
19 
20 protected:
21  RouterResult handleOperation(const Atlas::Objects::Operation::RootOperation& op) override;
22 
23 private:
24  RouterResult handleSightOp(const Atlas::Objects::Operation::RootOperation& op);
25 
26  Avatar* m_avatar;
27  View* m_view;
28  TypeInfo* m_actionType;
29 };
30 
31 } // of namespace Eris
32 
33 #endif // of ERIS_IG_ROUTER_H
The representation of an Atlas type (i.e a class or operation definition).
Definition: TypeInfo.h:31
View encapsulates the set of entities currently visible to an Avatar, as well as those that have rece...
Definition: View.h:37
Definition: IGRouter.h:13
Every Eris class and type lives inside the Eris namespace; certain utility functions live in the Util...
Definition: Account.cpp:34
abstract interface for objects that can route Atlas data.
Definition: Router.h:10
The player's avatar representation.
Definition: Avatar.h:34