From 20b958c69451dd8251a8899cf7264d5c92ed7c60 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 25 Feb 2018 21:11:43 +0100 Subject: Better management of stats and skill of actors and items --- src/main/headers/Weapon.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/main/headers/Weapon.hpp') diff --git a/src/main/headers/Weapon.hpp b/src/main/headers/Weapon.hpp index 40eb7a3..f59fe4d 100644 --- a/src/main/headers/Weapon.hpp +++ b/src/main/headers/Weapon.hpp @@ -2,17 +2,26 @@ #define WEAPON_HPP #include "Item.hpp" -#include "Actor.hpp" #include +class Actor; + class Weapon : public Item { +public: + enum class Class + { + SWORD, AXE, LANCE, RANGED + }; + + const Class weaponClass; + protected: unsigned _damage; unsigned _requiredLevel; - Weapon(Item::Type t, const std::string &name) : Item(t, name) {} + Weapon(Item::Type t, Class _weaponClass, const std::string &name) : Item(t, name), weaponClass(_weaponClass) {} }; #endif -- cgit v1.2.1