From 2cae1aa33f80ce0844fb54a84ce103146a7fe7ad Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 19 Apr 2021 13:46:14 -0400 Subject: Started earnest work on cli --- src/creature.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/creature.h') diff --git a/src/creature.h b/src/creature.h index fee7c35..7327de9 100644 --- a/src/creature.h +++ b/src/creature.h @@ -61,7 +61,8 @@ namespace creature { // 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 setScore(const std::string& ability, int score); + void setProfLevel(const std::string& skill, int level); void addInventoryItem(std::shared_ptr item); void removeInventoryItem(const std::string& itemName); @@ -73,6 +74,8 @@ namespace creature { int hpMax; int hp; std::vector> inventory; + std::map stats; + std::map skills; //Immutable variables const std::string creatureName; @@ -82,8 +85,6 @@ namespace creature { const int hdCount; const int hdSides; const std::string speed; - const std::map stats; - const std::map skills; const std::vector saves; const std::vector senses; const std::string langs; @@ -111,4 +112,7 @@ namespace creature { // Convenience function to calculate AC const int getAC(const Creature& c); + + // Convenience function to spit out everything about it + std::string genText(const Creature& c); } -- cgit v1.2.3