diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/headers/Actor.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/headers/Actor.hpp b/src/main/headers/Actor.hpp index 0e74ee0..24b7c72 100644 --- a/src/main/headers/Actor.hpp +++ b/src/main/headers/Actor.hpp @@ -1,9 +1,10 @@ #ifndef ACTOR_HPP #define ACTOR_HPP -#include <vector> +#include <list> #include <string> +#include "Item.hpp" class Actor { @@ -17,6 +18,9 @@ public: void damage(int amt); void heal(int amt); + void store(Item &item); + Item& drop(); + /* accessors */ bool alive() { return _alive; } unsigned hp() { return _hp; } @@ -29,6 +33,9 @@ protected: unsigned _hp; int _x, _y; + unsigned _inventorySize; + std::list<Item*> _inventory; + Actor(std::string _name, unsigned _maxHp); }; |