From 9034c3d2533177f7cb7a7ce939ec53f7fa63f60e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Apr 2021 16:16:27 -0400 Subject: Added spells --- src/creature.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/creature.h') diff --git a/src/creature.h b/src/creature.h index f73942f..6ba8cca 100644 --- a/src/creature.h +++ b/src/creature.h @@ -62,35 +62,38 @@ namespace creature { // Setters (mutators) void setGivenName(std::string); void applyDamage(int amount, const std::string& type, const std::vector& qualifiers); - void setScore(const std::string& ability, int score); + //void setScore(const std::string& ability, int score); void addInventoryItem(std::shared_ptr item); void removeInventoryItem(const std::string& itemName); virtual json toJson(void) const; private: - const std::string creatureName; + // Mutable variables std::string givenName; + int hpMax; + int hp; + std::vector> inventory; + + //Immutable variables + const std::string creatureName; const std::string size; const std::string type; const std::string alignment; - int hdCount; + const int hdCount; const int hdSides; - int hpMax; - int hp; const std::string speed; - std::map stats; - std::map skills; - std::vector saves; + const std::map stats; + const std::map skills; + const std::vector saves; const std::vector senses; const std::string langs; const double cr; - int proficiency; + const int proficiency; const std::vector dmgImmunities; const std::vector dmgResistances; const std::vector dmgVulnerabilities; const std::vector condImmunities; - std::vector> inventory; std::vector> features; }; -- cgit v1.2.3