diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 16:13:11 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 16:13:11 -0400 |
| commit | 44324ba5d6cac01048cc5cbecbff255ee56f2fc0 (patch) | |
| tree | 63e859067d214bfccf1d75520e1cedece0e91963 /src/entityfactory.h | |
| parent | 5990e7802c84b3f407de3934a1d75721115d1da7 (diff) | |
| download | therapy-44324ba5d6cac01048cc5cbecbff255ee56f2fc0.tar.gz therapy-44324ba5d6cac01048cc5cbecbff255ee56f2fc0.tar.bz2 therapy-44324ba5d6cac01048cc5cbecbff255ee56f2fc0.zip | |
Wrote simple factory to read map and entity data from XML files
Diffstat (limited to 'src/entityfactory.h')
| -rw-r--r-- | src/entityfactory.h | 15 |
1 files changed, 15 insertions, 0 deletions
| diff --git a/src/entityfactory.h b/src/entityfactory.h new file mode 100644 index 0000000..a35b5f7 --- /dev/null +++ b/src/entityfactory.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef ENTITYFACTORY_H | ||
| 2 | #define ENTITYFACTORY_H | ||
| 3 | |||
| 4 | #include "entity.h" | ||
| 5 | #include <memory> | ||
| 6 | #include <string> | ||
| 7 | #include <map> | ||
| 8 | #include "map.h" | ||
| 9 | |||
| 10 | class EntityFactory { | ||
| 11 | public: | ||
| 12 | static std::shared_ptr<Entity> createNamedEntity(const std::string name, const Map& map); | ||
| 13 | }; | ||
| 14 | |||
| 15 | #endif | ||
