Wip: working on add scenery
This commit is contained in:
+18
-7
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user