diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-08 15:29:05 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-08 15:29:54 -0800 |
commit | 444cf58a14428a88d0adb4f36f694da950e4d46a (patch) | |
tree | da0a6c20eb11c18e1d21c37bb5aafb338fea5288 /crawl-ref/source/actor.h | |
parent | 7eb0ec4b7f8ef0b96a54ddb5626f71084213bf4f (diff) | |
download | crawl-ref-444cf58a14428a88d0adb4f36f694da950e4d46a.tar.gz crawl-ref-444cf58a14428a88d0adb4f36f694da950e4d46a.zip |
Add hooks to evasion for observing the size of modifiers
Diffstat (limited to 'crawl-ref/source/actor.h')
-rw-r--r-- | crawl-ref/source/actor.h | 10 |
1 files changed, 9 insertions, 1 deletions
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; |