diff options
author | Your Name <you@example.com> | 2021-12-30 18:03:06 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2021-12-30 18:03:06 -0500 |
commit | d222c5a39943ed9f83f11d63a42bdff4978179af (patch) | |
tree | 8d820920df4e354ec733041532b48cad45f23104 /src | |
parent | 52b91a1aca6640b1797a63afc8a9e9a778b0964a (diff) | |
download | dmtool-d222c5a39943ed9f83f11d63a42bdff4978179af.tar.gz dmtool-d222c5a39943ed9f83f11d63a42bdff4978179af.tar.bz2 dmtool-d222c5a39943ed9f83f11d63a42bdff4978179af.zip |
Started work on features
Diffstat (limited to 'src')
-rw-r--r-- | src/creature.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/creature.h b/src/creature.h index 2424084..d8dbf29 100644 --- a/src/creature.h +++ b/src/creature.h @@ -77,8 +77,6 @@ namespace creature { // Setters (mutators) void setGivenName(const std::string& name); - void applyDamage(int amount, const std::string& type, const std::vector<rules::Qualifier>& qualifiers); - void applyHealing(int amount); void setScore(const rules::Ability& ability, int score); void setProfLevel(const rules::Skill& skill, int level); void setProficiency(int p); @@ -87,7 +85,14 @@ namespace creature { void addSpell(std::shared_ptr<entry::Spell> spell); void removeSpell(std::shared_ptr<entry::Spell> spell); void removeInventoryItem(std::shared_ptr<entry::Item> item); + + // Events void longRest(void); + void turnStart(void); + void turnEnd(void); + void applyDamage(int amount, const std::string& type, const std::vector<rules::Qualifier>& qualifiers); + void applyHealing(int amount); + void opportunityAttack(const creature::Creature& other); NLOHMANN_FRIEND_DECLARES(Creature); |