diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-09-29 11:02:54 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-09-29 11:02:54 +0200 |
commit | f1a675d44fd5bba55e4931cd89d3b803999f5f8c (patch) | |
tree | 08bb2336c4eb5d222f13fe0189fac894522ecb7b /crawl-ref/source/fight.h | |
parent | d1b7b627a9c6b62f3907df32a69d3f4ac7534284 (diff) | |
download | crawl-ref-f1a675d44fd5bba55e4931cd89d3b803999f5f8c.tar.gz crawl-ref-f1a675d44fd5bba55e4931cd89d3b803999f5f8c.zip |
Change cleave parameters to use attacker actor instead of pos.
Diffstat (limited to 'crawl-ref/source/fight.h')
-rw-r--r-- | crawl-ref/source/fight.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h index 780ae7fc32..c24dcbf7a2 100644 --- a/crawl-ref/source/fight.h +++ b/crawl-ref/source/fight.h @@ -45,9 +45,10 @@ unchivalric_attack_type is_unchivalric_attack(const actor *attacker, void chaos_affect_actor(actor *victim); int player_weapon_str_weight(); int player_weapon_dex_weight(); -void get_cleave_targets(coord_def atk, coord_def def, int dir, +void get_cleave_targets(const actor* attacker, const coord_def& def, int dir, list<actor*> &targets); -void get_all_cleave_targets(coord_def atk, coord_def def, list<actor*> &targets); +void get_all_cleave_targets(const actor* attacker, const coord_def& def, + list<actor*> &targets); void attack_cleave_targets(actor* attacker, list<actor*> &targets, int attack_number = 0, int effective_attack_number = 0); |