Wip: working on add scenery

This commit is contained in:
Timothy O'Barr
2026-09-01 16:27:01 -05:00
parent 15f0e369b2
commit 668d416256
7 changed files with 138 additions and 71 deletions
+18 -7
View File
@@ -24,15 +24,26 @@ protected:
int roomIdItBelongsTo;
public:
Object() = default;
Object(const int i, std::string n, std::string desc, std::vector<std::string> k, const ObjectType o, const bool ct,
const int rID) {
id = i;
name = std::move(n);
description = std::move(desc);
keywords = std::move(k);
type = o;
canTake = ct;
roomIdItBelongsTo = rID;
}
virtual void Interact() = 0;
std::string const GetName() { return name; }
std::string const GetDescription() { return description; }
std::string GetName() const { return name; }
std::string GetDescription() const { return description; }
ObjectType const GetObjectType() { return type; }
std::vector<std::string> const GetKeywords() { return keywords; }
int GetId() { return id; }
int GetRoomId() { return roomIdItBelongsTo; }
bool CanTake() { return canTake; }
ObjectType GetObjectType() const { return type; }
std::vector<std::string> GetKeywords() const { return keywords; }
int GetId() const { return id; }
int GetRoomId() const { return roomIdItBelongsTo; }
bool CanTake() const { return canTake; }
virtual ~Object() = default;
};