aboutsummaryrefslogtreecommitdiff
path: root/backend/ConsumableObject.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 22:47:42 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 22:47:42 +0100
commit07796bea15a2d5f43766f062379b63fc9e9e1b5d (patch)
tree2d398f161a9a933176f50779ff164e76c3871f43 /backend/ConsumableObject.h
parentaf76b9a0ae58dc8c87548053a5bc310ad6be25ce (diff)
WIP consumables
Diffstat (limited to 'backend/ConsumableObject.h')
-rw-r--r--backend/ConsumableObject.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/ConsumableObject.h b/backend/ConsumableObject.h
index 3b4a2ce..0ecd073 100644
--- a/backend/ConsumableObject.h
+++ b/backend/ConsumableObject.h
@@ -1,9 +1,23 @@
#pragma once
#include "Object.h"
+#include "Range.h"
+
+class Player;
class ConsumableObject : public Object {
using Object::Object;
+public:
+ virtual void consume(Player & player) = 0;
+
+public:
+ void set_potency(const Range<int> & range);
+ Range<int> get_potency() const;
+
+private:
+ int potency_min = 0;
+ int potency_max = 0;
+
};