aboutsummaryrefslogtreecommitdiff
path: root/backend/Object.h
blob: b98dc820cc0c702913a0fdab906e267f5f68ed5e (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
#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:
	friend class ObjectFactory;
	Object(const char * name = "", const char * description = "");
public:
	virtual ~Object();

protected:
	bool hidden = false;

};