#ifndef ACTOR_HPP #define ACTOR_HPP #include #include #include "Item.hpp" class Actor { public: const unsigned maxHp; const std::string name; Actor() = delete; virtual ~Actor(); void damage(int amt); void heal(int amt); void store(Item &item); Item& drop(); /* accessors */ bool alive() { return _alive; } unsigned hp() { return _hp; } int x() { return _x; } int y() { return _y; } protected: bool _alive; unsigned _hp; int _x, _y; unsigned _inventorySize; std::list _inventory; Actor(std::string _name, unsigned _maxHp); }; #endif