#include "Actor.hpp" Actor::Actor(std::string _name, unsigned _maxHp, Type _type) : name(_name), maxHp(_maxHp), type(_type) {} 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; } }