#include #include #include "Object.h" #include "util.h" Object::Object(const char * name, const char * description) { this->set_name(name); this->set_description(description); } Object::~Object() { safe_free(this->name); safe_free(this->description); } void Object::set_name(const char * name) { safe_free(this->name); this->name = strdup(name); } const char * Object::get_name() { return this->name; } const char * Object::get_displayname() { return this->get_name(); } void Object::set_description(const char * description) { safe_free(this->description); this->description = strdup(description); } const char * Object::get_description() { return this->description; } void Object::set_hidden(bool hidden) { this->hidden = hidden; } bool Object::get_hidden() { return this->hidden; }