diff options
Diffstat (limited to 'src/entityfactory.h')
| -rw-r--r-- | src/entityfactory.h | 3 |
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/entityfactory.h b/src/entityfactory.h index 870d6d5..56f7216 100644 --- a/src/entityfactory.h +++ b/src/entityfactory.h | |||
| @@ -2,13 +2,14 @@ | |||
| 2 | #define ENTITYFACTORY_H | 2 | #define ENTITYFACTORY_H |
| 3 | 3 | ||
| 4 | #include <string> | 4 | #include <string> |
| 5 | #include <map> | ||
| 5 | 6 | ||
| 6 | class Entity; | 7 | class Entity; |
| 7 | class Map; | 8 | class Map; |
| 8 | 9 | ||
| 9 | class EntityFactory { | 10 | class EntityFactory { |
| 10 | public: | 11 | public: |
| 11 | static std::shared_ptr<Entity> createNamedEntity(const std::string name); | 12 | static std::shared_ptr<Entity> createNamedEntity(const std::string name, const std::map<std::string, int>& items); |
| 12 | }; | 13 | }; |
| 13 | 14 | ||
| 14 | #endif | 15 | #endif |
