aboutsummaryrefslogtreecommitdiff
path: root/src/creature_data.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-09 13:56:46 -0400
committerYour Name <you@example.com>2021-05-09 13:56:46 -0400
commitd13358b71ec15085f2638fd9c3fc634df62dfc94 (patch)
tree467c643a068bf2d83da3632823a6434244ae004e /src/creature_data.h
parente3aaa68a2ea1a403256150121c57a0287014162f (diff)
downloaddmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.gz
dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.bz2
dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.zip
Reduced dependency on json-related hacks
Diffstat (limited to 'src/creature_data.h')
-rw-r--r--src/creature_data.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/creature_data.h b/src/creature_data.h
new file mode 100644
index 0000000..151a84c
--- /dev/null
+++ b/src/creature_data.h
@@ -0,0 +1,28 @@
+namespace creatue {
+ struct Creature_Data {
+ std::string givenName;
+ int hpMax;
+ int hp;
+ std::vector<std::shared_ptr<entry::Item>> inventory;
+ std::map<rules::Ability, int> stats;
+ std::map<rules::Skill, int> skills;
+ int proficiency;
+ std::string size;
+ std::string alignment;
+ int hdCount;
+ int hdSides;
+ std::string speed;
+ std::vector<rules::Ability> saves;
+ std::vector<std::string> senses;
+ std::string langs;
+ double cr;
+ bool observant;
+ std::string natArmorName;
+ int natArmorBonus;
+ std::vector<dmgType> dmgImmunities;
+ std::vector<dmgType> dmgResistances;
+ std::vector<dmgType> dmgVulnerabilities;
+ std::vector<dmgType> condImmunities;
+ std::vector<std::shared_ptr<entry::Feature>> features;
+ };
+}