diff options
author | mafaldo <mafaldo@heavyhammer.home> | 2018-02-17 00:29:32 +0100 |
---|---|---|
committer | mafaldo <mafaldo@heavyhammer.home> | 2018-02-17 00:29:32 +0100 |
commit | af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 (patch) | |
tree | 24dcdaa94c20211974fca97e41647ff0dec31923 /src/main/headers/Actor.hpp | |
parent | Add cpack directive and update README (diff) | |
download | Subconscious-old-af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3.tar.gz Subconscious-old-af3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3.zip |
add Item type, use for MeleeWeapon
Diffstat (limited to 'src/main/headers/Actor.hpp')
-rw-r--r-- | src/main/headers/Actor.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
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<Item*>& 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<Item*> _inventory; + Item* _weapon; + + unsigned _levelAxe; + unsigned _levelLance; + unsigned _levelSword; + unsigned _levelRanged; + unsigned _levelStick; + unsigned _levelMedicine; + Actor(std::string _name, unsigned _maxHp); }; |