From 4618763c0e3a723bf4bb43c7b9edbce87240e0af Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 16 Apr 2021 11:23:27 -0400 Subject: Rebased feature/item on entry --- src/creature.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/creature.h') diff --git a/src/creature.h b/src/creature.h index 88326f4..fee7c35 100644 --- a/src/creature.h +++ b/src/creature.h @@ -2,10 +2,10 @@ #include "json.hpp" #include "jsonable.h" -namespace feature { +namespace entry { class Feature; } -namespace item { +namespace entry { class Item; } class Armor; @@ -54,15 +54,15 @@ namespace creature { int getScore(const std::string& ability) const {return stats.at(ability);} int getBonus(const std::string& ability) const {return (int) (getScore(ability) - 10) / 2;} int getProficiency(void) const {return proficiency;} - std::vector> getFeatures(void) const {return features;} - std::vector> getInventory(void) const {return inventory;} + std::vector> getFeatures(void) const {return features;} + std::vector> getInventory(void) const {return inventory;} // Setters (mutators) void setGivenName(std::string name) {givenName = name;} void applyDamage(int amount, const std::string& type, const std::vector& qualifiers); //void setScore(const std::string& ability, int score); - void addInventoryItem(std::shared_ptr item); + void addInventoryItem(std::shared_ptr item); void removeInventoryItem(const std::string& itemName); virtual json toJson(void) const; @@ -72,7 +72,7 @@ namespace creature { std::string givenName; int hpMax; int hp; - std::vector> inventory; + std::vector> inventory; //Immutable variables const std::string creatureName; @@ -93,7 +93,7 @@ namespace creature { const std::vector dmgResistances; const std::vector dmgVulnerabilities; const std::vector condImmunities; - const std::vector> features; + const std::vector> features; }; -- cgit v1.2.3