diff options
Diffstat (limited to 'src/creature.h')
-rw-r--r-- | src/creature.h | 10 |
1 files changed, 7 insertions, 3 deletions
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<std::string>& 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<entry::Item> item); void removeInventoryItem(const std::string& itemName); @@ -73,6 +74,8 @@ namespace creature { int hpMax; int hp; std::vector<std::shared_ptr<entry::Item>> inventory; + std::map<std::string, int> stats; + std::map<std::string, int> 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<std::string, int> stats; - const std::map<std::string, int> skills; const std::vector<std::string> saves; const std::vector<std::string> 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); } |