From 444cf58a14428a88d0adb4f36f694da950e4d46a Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Sun, 8 Nov 2009 15:29:05 -0800 Subject: Add hooks to evasion for observing the size of modifiers --- crawl-ref/source/actor.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/actor.h') diff --git a/crawl-ref/source/actor.h b/crawl-ref/source/actor.h index b93046d727..6d98fb2245 100644 --- a/crawl-ref/source/actor.h +++ b/crawl-ref/source/actor.h @@ -3,6 +3,13 @@ #include "los_def.h" +enum ev_ignore_type +{ + EV_IGNORE_NONE = 0, + EV_IGNORE_HELPLESS = 1, + EV_IGNORE_PHASESHIFT = 2 +}; + class actor { public: @@ -167,7 +174,8 @@ public: virtual bool can_throw_large_rocks() const = 0; virtual int armour_class() const = 0; - virtual int melee_evasion(const actor *attacker) const = 0; + virtual int melee_evasion(const actor *attacker, + ev_ignore_type ign = EV_IGNORE_NONE) const = 0; virtual int shield_bonus() const = 0; virtual int shield_block_penalty() const = 0; virtual int shield_bypass_ability(int tohit) const = 0; -- cgit v1.2.3-54-g00ecf