Implement basic rooms and navigation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user