Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
SpellEventListener.hpp
Go to the documentation of this file.
1 
8 #ifndef RECAST_SERVER_SPELLEVENTLISTENER_H
9 #define RECAST_SERVER_SPELLEVENTLISTENER_H
10 
11 #include <Server.hpp>
12 #include "IEventListener.hpp"
13 
14 class Spell;
15 
16 class SpellEntity;
17 
19 public:
20  SpellEventListener(Spell *spell, SpellEntity *entity, Box2DWorld *world, std::shared_ptr<TempWorld> tempWorld)
21  : spell(spell),
22  entity(entity),
23  world(world),
24  tempWorld(tempWorld) {}
25 
26  void onEvent(IEvent &event);
27 
28 private:
29  Spell *spell;
30  SpellEntity *entity;
31  Box2DWorld *world;
32  std::shared_ptr<TempWorld> tempWorld;
33 };
34 
35 
36 #endif //RECAST_SERVER_SPELLEVENTLISTENER_H
SpellEventListener(Spell *spell, SpellEntity *entity, Box2DWorld *world, std::shared_ptr< TempWorld > tempWorld)
Definition: SpellEventListener.hpp:20
Definition: Spell.hpp:15
Server file.
Definition: SpellEntity.h:16
Definition: SpellEventListener.hpp:18
Definition: IEvent.hpp:18
Definition: Box2DWorld.h:26
void onEvent(IEvent &event)
Definition: SpellEventListener.cpp:10
Definition: IEventListener.hpp:13