-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileReader.h
43 lines (31 loc) · 855 Bytes
/
FileReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Created by Jakub on 06/10/2017.
//
#ifndef CTHULU_GAME_FILEREADER_H
#define CTHULU_GAME_FILEREADER_H
#include "location.h"
#include <string>
#include <utility>
#include "character.h"
#include "Event.h"
#include "json/json.hpp"
#include "EventChain.h"
class FileReader{
private:
std::string path = "";
public:
FileReader() = default;
explicit FileReader(const std::string folder_path): path(folder_path) {}
abstractLocation * jsonLoadLocation(const std::string &filename);
Character* jsonLoadCharacter(const std::string &filename);
std::string getPath() {
return path;
}
void setPath(std::string &filepath) {
path = filepath;
}
std::vector<EventChain*> jsonFormEvent(nlohmann::json dialog);
std::string processHeroName();
~FileReader();
};
#endif //CTHULU_GAME_FILEREADER_H