diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-26 03:05:13 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-26 03:05:13 +0000 |
commit | d16ed1201876132b39d151da6877de997da67912 (patch) | |
tree | 30e5d1df643776b9486d0dd0ea0ef123da68e003 /crawl-ref/source/externs.h | |
parent | 537e2fe2876ff141f926d946f1c9ed2fba85c714 (diff) | |
download | crawl-ref-d16ed1201876132b39d151da6877de997da67912.tar.gz crawl-ref-d16ed1201876132b39d151da6877de997da67912.zip |
Generalize the routines to determine whether you or a monster can mutate
or mutate safely by moving them to the actor interface.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4650 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index c37fc842b6..b9aa5700c5 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -147,6 +147,8 @@ public: virtual bool can_see(const actor *target) const = 0; virtual bool is_icy() const = 0; virtual void go_berserk(bool intentional) = 0; + virtual bool can_mutate() const = 0; + virtual bool can_safely_mutate() const = 0; virtual void mutate() = 0; virtual int hurt(const actor *attacker, int amount) = 0; virtual void heal(int amount, bool max_too = false) = 0; @@ -839,6 +841,8 @@ public: bool can_go_berserk() const; bool can_go_berserk(bool verbose) const; void go_berserk(bool intentional); + bool can_mutate() const; + bool can_safely_mutate() const; void mutate(); void banish(const std::string &who = ""); void blink(); @@ -1161,6 +1165,8 @@ public: void attacking(actor *other); bool can_go_berserk() const; void go_berserk(bool intentional); + bool can_mutate() const; + bool can_safely_mutate() const; void mutate(); void banish(const std::string &who = ""); void expose_to_element(beam_type element, int strength = 0); |