diff options
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game.h b/src/game.h index 84114ca..c7926bf 100644 --- a/src/game.h +++ b/src/game.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <vector> | 6 | #include <vector> |
7 | #include <memory> | 7 | #include <memory> |
8 | #include <map> | 8 | #include <map> |
9 | #include <set> | ||
9 | #include "sprite.h" | 10 | #include "sprite.h" |
10 | #include "map.h" | 11 | #include "map.h" |
11 | #include "consts.h" | 12 | #include "consts.h" |
@@ -45,6 +46,8 @@ public: | |||
45 | 46 | ||
46 | int emplaceSprite(std::string alias); | 47 | int emplaceSprite(std::string alias); |
47 | 48 | ||
49 | void destroySprite(int id); | ||
50 | |||
48 | const Sprite& getSprite(int id) const { | 51 | const Sprite& getSprite(int id) const { |
49 | return sprites_.at(id); | 52 | return sprites_.at(id); |
50 | } | 53 | } |
@@ -53,7 +56,7 @@ public: | |||
53 | return sprites_.at(id); | 56 | return sprites_.at(id); |
54 | } | 57 | } |
55 | 58 | ||
56 | const std::vector<int>& getSprites() { | 59 | const std::set<int>& getSprites() { |
57 | return spriteIds_; | 60 | return spriteIds_; |
58 | } | 61 | } |
59 | 62 | ||
@@ -93,7 +96,7 @@ private: | |||
93 | std::list<std::unique_ptr<System>> systems_; | 96 | std::list<std::unique_ptr<System>> systems_; |
94 | std::map<SystemKey, System*> systemByKey_; | 97 | std::map<SystemKey, System*> systemByKey_; |
95 | 98 | ||
96 | std::vector<int> spriteIds_; | 99 | std::set<int> spriteIds_; |
97 | std::vector<Sprite> sprites_; | 100 | std::vector<Sprite> sprites_; |
98 | std::map<std::string, int> spritesByAlias_; | 101 | std::map<std::string, int> spritesByAlias_; |
99 | std::unique_ptr<Map> map_; | 102 | std::unique_ptr<Map> map_; |