Implement basic rooms and navigation

This commit is contained in:
Timothy O'Barr
2026-08-20 08:10:07 -05:00
parent 707b88c736
commit 9b72d1588e
11 changed files with 125 additions and 115 deletions
+5 -1
View File
@@ -30,11 +30,15 @@ public:
Room(int id, std::string name, std::string desc, std::vector<Exit> e);
Room(const Room &r);
int AvalibleExits() { return exits.size(); }
int AvalibleExits() const { return exits.size(); }
void Print() const;
int GetID() const { return id; }
~Room();
friend void to_json(nlohmann::json &j, const Room &r);
friend void from_json(const nlohmann::json &j, Room &r);
};
static int Move(std::string c);