aboutsummaryrefslogtreecommitdiff
path: root/backend/Object.cpp
blob: 2640607d62a99bf860b78f783c5880f5dcfa180e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "Object.h"

Object::Object(const String & name, const String & description) : name(name), description(description) { }

void Object::set_name(const String & name) {
	this->name = name;
}
const String & Object::get_name() const {
	return this->name;
}
const String & Object::get_displayname() const {
	static String displayname = this->name;
	return displayname;
}

void Object::set_description(const String & description) {
	this->description = description;
}
const String & Object::get_description() const {
	return this->description;
}

void Object::set_hidden(bool hidden) {
	this->hidden = hidden;
}
bool Object::get_hidden() {
	return this->hidden;
}