From af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 Mon Sep 17 00:00:00 2001 From: mafaldo Date: Sat, 17 Feb 2018 00:29:32 +0100 Subject: add Item type, use for MeleeWeapon --- src/main/headers/Actor.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/main/headers/Actor.hpp') diff --git a/src/main/headers/Actor.hpp b/src/main/headers/Actor.hpp index 14c4fff..90535b1 100644 --- a/src/main/headers/Actor.hpp +++ b/src/main/headers/Actor.hpp @@ -38,6 +38,16 @@ public: const std::list& inventory() const { return _inventory; } + //TODO add weaponslot + Item* weapon() const { return _weapon; } + + unsigned levelAxe() const { return _levelAxe; } + unsigned levelLance() const { return _levelLance; } + unsigned levelSword() const { return _levelSword; } + unsigned levelRanged() const { return _levelRanged; } + unsigned levelStick() const { return _levelStick; } + unsigned levelMedicine() const { return _levelMedicine; } + int x() { return _x; } int y() { return _y; } @@ -66,6 +76,15 @@ protected: unsigned _inventorySize; std::list _inventory; + Item* _weapon; + + unsigned _levelAxe; + unsigned _levelLance; + unsigned _levelSword; + unsigned _levelRanged; + unsigned _levelStick; + unsigned _levelMedicine; + Actor(std::string _name, unsigned _maxHp); }; -- cgit v1.2.1