Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
IEvent.hpp
Go to the documentation of this file.
1 
8 #ifndef RECAST_SERVER_IEVENT_H
9 #define RECAST_SERVER_IEVENT_H
10 
11 #include <boost/log/trivial.hpp>
12 #include <world/Box2DWorld.h>
13 #include <Server.hpp>
14 
15 class SpellNode;
16 class SpellEntity;
17 
18 class IEvent {
19 public:
20  IEvent(SpellNode *node) : fromNode(node) {}
21 
22  SpellNode *getNode() const { return fromNode; }
23 
24  virtual void commit(Box2DWorld *world, SpellEntity * entity, std::shared_ptr<TempWorld> tempWorld) = 0;
25 
26 protected:
28 };
29 
30 
31 #endif //RECAST_SERVER_IEVENT_H
SpellNode * getNode() const
Definition: IEvent.hpp:22
SpellNode * fromNode
Definition: IEvent.hpp:27
virtual void commit(Box2DWorld *world, SpellEntity *entity, std::shared_ptr< TempWorld > tempWorld)=0
Server file.
Definition: SpellEntity.h:16
Definition: IEvent.hpp:18
IEvent(SpellNode *node)
Definition: IEvent.hpp:20
Definition: Box2DWorld.h:26
Definition: SpellNode.hpp:23