// // HGameConfigParser.h // SteveAndMaggieGame // // Created by Katarzyna Kalinowska-Górska on 07/05/2019. // #ifndef HGameConfigParser_h #define HGameConfigParser_h #include #include "HSubGameScene.h" #include "json/document.h" class HGameConfigParser : public HSubGameScene::GameCreator { public: HGameConfigParser(std::string configFilePath); virtual ~HGameConfigParser(); virtual HSubGameScene* createGameScene(std::string layoutFilePath) override; protected: rapidjson::Document* _configJson; virtual std::string parseGameType(); virtual void parseSoundInfoFile(std::string soundFolderPath, std::string filePath, std::map& mapToFill); virtual HSubGameScene* createGameScene(std::string gameType, std::string layoutFilePath); }; #endif /* HGameConfigParser_h */