Inital Commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "CommandParser.h"
|
||||
#include "game.h"
|
||||
#include "json.hpp"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
|
||||
extern bool isActive;
|
||||
|
||||
#define MAP_HEIGHT 5
|
||||
#define MAP_WIDTH 5
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
class Game {
|
||||
private:
|
||||
std::vector<std::vector<Room>> rooms;
|
||||
Player player;
|
||||
int progress;
|
||||
CommandParser parser;
|
||||
nlohmann::json json;
|
||||
fs::path filePath = "Resources/Rooms.json";
|
||||
|
||||
std::ifstream stream;
|
||||
|
||||
public:
|
||||
Game();
|
||||
|
||||
static bool GetIsActive() { return isActive; }
|
||||
|
||||
bool Init();
|
||||
void ChangeRoom(Direction dir);
|
||||
void Run();
|
||||
bool Save();
|
||||
static void SetIsActive(const bool active) { isActive = active; }
|
||||
};
|
||||
|
||||
static int Exit(std::string n);
|
||||
Reference in New Issue
Block a user