aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/RangedWeapon.hpp
blob: e5b0b66626b5e14dc18762b740139fd6665ddc10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef RANGEDWEAPON_HPP
#define RANGEDWEAPON_HPP

#include "Actor.hpp"
#include "Weapon.hpp"

#include <string>

class RangedWeapon : public Weapon
{
public:
    RangedWeapon(const std::string &name);
    bool use(Actor &user, Actor &actor);
    bool reload(Actor &actor);

protected:
    bool _charged;
    unsigned _range;
};

#endif