blob: 0ecd0730a0b44501b9c7cc96d23d5f353ca687d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
};
|