diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-30 10:53:06 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-30 10:53:06 +0000 |
commit | 262b8e18ed8cb58afb40a816ac0fdedfe3a7db5f (patch) | |
tree | 681a9cbb6c22669c6e8b7ab749228a3cd691a903 /crawl-ref/source/spl-util.h | |
parent | 51d8f1fc9cc8ed4280b9c53b135ccb0521e84889 (diff) | |
download | crawl-ref-262b8e18ed8cb58afb40a816ac0fdedfe3a7db5f.tar.gz crawl-ref-262b8e18ed8cb58afb40a816ac0fdedfe3a7db5f.zip |
Massive overhaul to move towards coord_def().
This might have introduced some bugs: I now get intermittent crashes
on startup (this might have to do with the changes to special_room.)
Sorry about that - committing before I need to do any more big conflict
resolutions. Fixes coming later.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6732 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r-- | crawl-ref/source/spl-util.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h index 3734b8d2d4..16c1bac4d0 100644 --- a/crawl-ref/source/spl-util.h +++ b/crawl-ref/source/spl-util.h @@ -100,6 +100,10 @@ const char* spelltype_short_name( int which_spelltype ); const char* spelltype_long_name( int which_spelltype ); typedef int cell_func(coord_def where, int pow, int aux); +typedef int cloud_func(coord_def where, int pow, int spreadrate, + cloud_type type, kill_category whose, + killer_type killer); + int apply_area_visible(cell_func cf, int power, bool pass_through_trans = false); @@ -122,9 +126,8 @@ bool spell_direction( dist &spelld, bolt &pbolt, bool may_target_self = false, const char *prompt = NULL, bool cancel_at_self = false ); -void apply_area_cloud(int (*func) (int, int, int, int, cloud_type, - kill_category, killer_type), - int x, int y, int pow, int number, cloud_type ctype, +void apply_area_cloud(cloud_func func, const coord_def& where, + int pow, int number, cloud_type ctype, kill_category kc, killer_type killer, int spread_rate = -1); |