Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
MoveEvent.h
Go to the documentation of this file.
1 
8 #ifndef RECAST_SERVER_MOVEEVENT_H
9 #define RECAST_SERVER_MOVEEVENT_H
10 
11 
12 #include "IEvent.hpp"
13 
14 class MoveEvent : public IEvent {
15 public:
16  MoveEvent(SpellNode *node, int entityId, float energy) : IEvent(node), entityId(entityId), energy(energy) {}
17  void commit(Box2DWorld *world, SpellEntity * entity, std::shared_ptr<TempWorld> tempWorld);
18 private:
19  float energy;
20  int entityId;
21 };
22 
23 
24 #endif //RECAST_SERVER_MOVEEVENT_H
MoveEvent(SpellNode *node, int entityId, float energy)
Definition: MoveEvent.h:16
Definition: SpellEntity.h:16
Definition: IEvent.hpp:18
Definition: Box2DWorld.h:26
Definition: SpellNode.hpp:23
void commit(Box2DWorld *world, SpellEntity *entity, std::shared_ptr< TempWorld > tempWorld)
Definition: MoveEvent.cpp:16
Definition: MoveEvent.h:14