From d222c5a39943ed9f83f11d63a42bdff4978179af Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 30 Dec 2021 18:03:06 -0500 Subject: Started work on features --- src/creature.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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& 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 spell); void removeSpell(std::shared_ptr spell); void removeInventoryItem(std::shared_ptr item); + + // Events void longRest(void); + void turnStart(void); + void turnEnd(void); + void applyDamage(int amount, const std::string& type, const std::vector& qualifiers); + void applyHealing(int amount); + void opportunityAttack(const creature::Creature& other); NLOHMANN_FRIEND_DECLARES(Creature); -- cgit v1.2.3