aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 01:29:58 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 01:29:58 +0100
commitb9e738502260b8f448289c9888203971c7749c76 (patch)
tree09477251ba49307173a112e0cd5dbdd3633346ce /backend/ObjectFactory.h
parente4261302944303781c952943e3290c99e2cabc52 (diff)
WIP SQL gedoe
Diffstat (limited to 'backend/ObjectFactory.h')
-rw-r--r--backend/ObjectFactory.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/backend/ObjectFactory.h b/backend/ObjectFactory.h
index f9a7301..adf960b 100644
--- a/backend/ObjectFactory.h
+++ b/backend/ObjectFactory.h
@@ -2,9 +2,17 @@
#include "Object.h"
+enum ObjectType {
+ ARMOR,
+ CONSUMABLE,
+ GOLD,
+ WEAPON,
+};
+
class ObjectFactory {
public:
- static Object * create_object();
+ 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;