diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 10:18:22 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 10:18:22 +0100 |
commit | 798948dbe6f012e194f053c4e862cf697f30b793 (patch) | |
tree | 32c71420d1188f98cfb41b6f0d9536c5fa4bf5a7 /backend/Enemy.h | |
parent | d7012045bb61f117fb7b9c51ddd03e4c54f25fe6 (diff) |
more WIP (move some Player things to backend)
Diffstat (limited to 'backend/Enemy.h')
-rw-r--r-- | backend/Enemy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/Enemy.h b/backend/Enemy.h index 23d988d..71ad437 100644 --- a/backend/Enemy.h +++ b/backend/Enemy.h @@ -11,6 +11,12 @@ public: unsigned get_health() const; void take_damage(unsigned int dmg); 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; private: friend class EnemyFactory; @@ -22,5 +28,8 @@ private: String name; String description; unsigned int health_points = 0; + float attack_chance = 0.0; + int damage_min = 0; + int damage_max = 0; }; |