Wip: Working on Room Movement

This commit is contained in:
Timothy O'Barr
2026-08-21 15:52:12 -05:00
parent 66fd2b0951
commit ae46fdf51f
6 changed files with 83 additions and 26 deletions
+5 -4
View File
@@ -12,6 +12,7 @@
static int curX, curY;
extern bool isActive;
extern std::vector<std::vector<Room>> rooms;
#define MAP_HEIGHT 5
#define MAP_WIDTH 5
@@ -19,7 +20,6 @@ extern bool isActive;
namespace fs = std::filesystem;
class Game {
private:
std::vector<std::vector<Room>> rooms;
Player player;
int progress;
CommandParser parser;
@@ -39,6 +39,7 @@ public:
void Run();
bool Save();
void ChangeRoom(Room r);
Room GetCurrentRoom() { return currentRoom; }
static void SetIsActive(const bool active) { isActive = active; }
@@ -53,6 +54,6 @@ public:
};
// Commands
static int Quit(std::string n);
static int Move(std::string c);
static int Look(std::string c);
static int Quit(const std::string &n);
static int Move(const std::string &c);
static int Look(const std::string &c);