aboutsummaryrefslogtreecommitdiff
path: root/src/armor.h
blob: 43bd0025635d6e93adb7e7bd1e0f7a6fed030ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "item.h"
#include <nlohmann/json.hpp>

namespace entry {
    struct armorImpl;

    class Armor : public Item {
        public:
            Armor();
            int getACBonus(void) const;
            std::string getArmorType(void) const;
            int getStrRequirement(void) const;
            bool stealthDisadvantage(void) const;

            virtual std::string getText() const override;
            virtual std::string getText(const creature::Creature& c) const override;

            NLOHMANN_FRIEND_DECLARES(Armor);
        private:
            std::shared_ptr<armorImpl> data;
    };
}