diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
commit | af76b9a0ae58dc8c87548053a5bc310ad6be25ce (patch) | |
tree | b2aa5927ed19855c101120593b59a9c3224804ad /backend/Enemy.h | |
parent | bdf6ac149ec260dab767663419731b302679f458 (diff) |
more small tweaks
Diffstat (limited to 'backend/Enemy.h')
-rw-r--r-- | backend/Enemy.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backend/Enemy.h b/backend/Enemy.h index 4db2ae8..f85172e 100644 --- a/backend/Enemy.h +++ b/backend/Enemy.h @@ -4,6 +4,7 @@ #include "PtrList.h" #include "ListIterator.h" #include "Object.h" +#include "Range.h" class Enemy { public: @@ -18,10 +19,8 @@ public: virtual const String & get_displayname() const; void set_attack(float attack_chance); float get_attack() const; - void set_damage_min(int damage_min); - int get_damage_min() const; - void set_damage_max(int damage_max); - int get_damage_max() const; + void set_damage(const Range<int> & range); + Range<int> get_damage() const; void add_hidden_object(Object *); void remove_hidden_object(Object *); |