HGameConfigParser.h
858 Bytes
//
// HGameConfigParser.h
// SteveAndMaggieGame
//
// Created by Katarzyna Kalinowska-Górska on 07/05/2019.
//
#ifndef HGameConfigParser_h
#define HGameConfigParser_h
#include <stdio.h>
#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<std::string, float>& mapToFill);
virtual HSubGameScene* createGameScene(std::string gameType, std::string layoutFilePath);
};
#endif /* HGameConfigParser_h */