aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.h
blob: adf960b4a048f968dc081fd3a78a3eb618c29a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "Object.h"

enum ObjectType {
	ARMOR,
	CONSUMABLE,
	GOLD,
	WEAPON,
};

class ObjectFactory {
public:
	static Object * create_object(ObjectType type, const char * name = "", const char * description = "");
	static Object * create_object(const char * name = "", const char * description = "");

private:
	ObjectFactory() = delete;
};