diff options
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; }; |