aboutsummaryrefslogtreecommitdiff
path: root/src/armor.h
blob: c8bdb8751d8d3126c5fb69b6c854b732dac7e65c (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
#pragma once
#include "item.h"
#include <nlohmann/json.hpp>

namespace entry {
    struct armorImpl;

    class Armor : public Item , public Substantial {
        public:
            Armor();
            int getACBonus(void) const;
            std::string getArmorType(void) const;
            int getStrRequirement(void) const;
            bool stealthDisadvantage(void) const;
            int getCost(void) const;
            double getWeight(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;
    };
}