aboutsummaryrefslogtreecommitdiff
path: root/src/creature.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-04-19 13:46:14 -0400
committerYour Name <you@example.com>2021-04-19 13:46:14 -0400
commit2cae1aa33f80ce0844fb54a84ce103146a7fe7ad (patch)
tree26945223a2672c5a80975a7b1998622da6edcc28 /src/creature.h
parent4618763c0e3a723bf4bb43c7b9edbce87240e0af (diff)
downloaddmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.tar.gz
dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.tar.bz2
dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.zip
Started earnest work on cli
Diffstat (limited to 'src/creature.h')
-rw-r--r--src/creature.h10
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);
}