LCOV - code coverage report
Current view: top level - src - mobsystem.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2020-10-15 20:26:03 Functions: 1 1 100.0 %

          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 */

Generated by: LCOV version 1.13