Entity2D_SimpleView.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Entity2D.hpp"
4 #include <ivorium.hpp>
5 #include <unordered_map>
6 
7 namespace comp
8 {
9 
14 {
15 public:
17 
19 
20 private:
21  iv::Image img;
22 };
23 
28 {
29 public:
32 
34 
35  virtual void frame_update() override;
36 
37 protected:
38  virtual void Entity2D_Registered( Entity2D * entity ) override;
39  virtual void Entity2D_Unregistered( Entity2D * entity ) override;
40 
41 private:
42  iv::Heap heap;
43  std::unordered_map< Entity2D *, Entity2D_SimpleView_Item * > entities;
44 
45 };
46 
47 }