aboutsummaryrefslogtreecommitdiff
path: root/backend/Object.h
blob: cb2c2095f2dbd352f749ae103bb4ee0008078d2b (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
#pragma once

class Object {
private:
	const char * name = nullptr;
	const char * description = nullptr;

public:
	void set_name(const char * name);
	const char * get_name();
	virtual const char * get_displayname();
	void set_description(const char * description);
	const char * get_description();
	void set_hidden(bool hidden);
	bool get_hidden();

protected:
	Object(const char * name = "", const char * description = "");
	virtual ~Object();
	friend class ObjectFactory;

protected:
	bool hidden = false;

};