aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Weapon.hpp
blob: f59fe4dcf66aa7236296f087335869b1bce42a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef WEAPON_HPP
#define WEAPON_HPP

#include "Item.hpp"

#include <string>

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, Class _weaponClass, const std::string &name) : Item(t, name), weaponClass(_weaponClass) {}
};

#endif