aboutsummaryrefslogtreecommitdiff
path: root/src/armor.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-04-13 15:14:34 -0400
committerYour Name <you@example.com>2021-04-13 15:14:34 -0400
commit2ab51e507d620c4479e07ca0ec47d22c8c66bc90 (patch)
tree90906ecb043c01034280c767b83a88eb6df6956f /src/armor.h
downloaddmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.tar.gz
dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.tar.bz2
dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.zip
Initial commit
Diffstat (limited to 'src/armor.h')
-rw-r--r--src/armor.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/armor.h b/src/armor.h
new file mode 100644
index 0000000..0ea7199
--- /dev/null
+++ b/src/armor.h
@@ -0,0 +1,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;
+ };
+}