#pragma once #include #include #include #include #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> 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);