#include "Actor.hpp" Actor::Actor(std::string _name, unsigned _maxHp) : name(_name), maxHp(_maxHp) {} Actor::~Actor() {} void Actor::damage(int amt) { _hp -= amt; if (_hp < 0) { _hp = 0; _alive = false; } } void Actor::heal(int amt) { _hp += amt; if (_hp > maxHp) { _hp = maxHp; } }