Line data Source code
1 : #ifndef mobsystem_hpp
2 : #define mobsystem_hpp
3 :
4 : #include "entity.h"
5 : #include "mob.h"
6 : #include "system.h"
7 : #include "util.h"
8 :
9 : extern const std::unordered_map<MobType, MobInfo> MobDatabase;
10 :
11 : class Game;
12 : class MobSystem : public System {
13 : public:
14 5 : MobSystem(Game& game) : game_(game) {}
15 : void update() final;
16 : void handleEvent(const EvAny&) final;
17 :
18 : protected:
19 : void updateMob(Entity& e, Mob& mob);
20 :
21 : protected:
22 : Game& game_;
23 : };
24 :
25 : #endif /* mobsystem_hpp */
|