diff options
Diffstat (limited to 'frontend/Player.cpp')
-rw-r--r-- | frontend/Player.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/Player.cpp b/frontend/Player.cpp index 27c660c..fde85e6 100644 --- a/frontend/Player.cpp +++ b/frontend/Player.cpp @@ -46,11 +46,15 @@ FollowupAction Player::cmd(string & argv) { return FollowupAction::NONE; } -float Player::get_attack() { +float Player::get_attack() const { if (this->cheating) return 1.f; return this->attack_chance; } +unsigned Player::get_health() const { + return this->health_points; +} + void Player::take_damage(unsigned int dmg) { if (this->cheating) return; |