initial commit
[COMP345---Clone.git] / Weapon.h
blob53e041f358be834e4c7a48e3ee306806b2902040
1 //!@file Weapon.h
2 //! @brief Declaration of weapon equipment
3 //!
4 //! This class represents weapon that is equipped or carried by a character
5 //! It makes accessible all stats that weapons have in D20 ruleset
6 #pragma once
7 #include "Equipment.h"
9 //! This class represents weapon that is equipped or carried by a character
10 class Weapon :
11 public Equipment
13 public:
14 Weapon();
15 Weapon(int w_atk, int w_dmg, int w_level);
16 Weapon(int w_level);
17 ~Weapon();
18 int getAttack() { return atk; };
19 int getDamage() { return dmg; };
20 void setAttack(int w_atk) { atk = w_atk; };
21 void setDamage(int w_dmg) { dmg = w_dmg; };
22 bool validateEquipment();
23 void levelUpEquipment(int w_level);