aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Actor.hpp
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-02-17 00:29:32 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-02-17 00:29:32 +0100
commitaf3e76c5ee367ceffb78fa4a8ffc0eadf90e5de3 (patch)
tree24dcdaa94c20211974fca97e41647ff0dec31923 /src/main/headers/Actor.hpp
parentAdd cpack directive and update README (diff)
downloadSubconscious-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.hpp19
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);
};