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

namespace item {
    class Armor : public Item {
        public:
            Armor(const nlohmann::json& data);
            int getACBonus(void) const;
            std::string getArmorType(void) const;
            int getStrRequirement(void) const;
            bool stealthDisadvantage(void) const;

            virtual nlohmann::json toJson(void) const;

        private:
            const int acBonus;
            const std::string armorType;
            const int strRequirement;
            const bool stealthDis;
    };
}