aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/RangedWeapon.hpp
blob: 0cc3be17b05c523e4859bd598ada53fa36ee6736 (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);
    void reload(Actor &actor);

protected:
    bool _charged;
    unsigned _range;
};

#endif