From 3797cd88dfd7d37ab3c8f0118f34bb2962c2ae3b Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 25 May 2008 19:05:13 +0000 Subject: Rearrange the order of a few functions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5242 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.h | 51 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'crawl-ref/source/religion.h') diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h index 1ca01f75f1..9d3f4d3486 100644 --- a/crawl-ref/source/religion.h +++ b/crawl-ref/source/religion.h @@ -29,6 +29,31 @@ enum harm_protection_type NUM_HPTS }; +// Calls did_god_conduct() when the object goes out of scope. +struct god_conduct_trigger +{ + conduct_type conduct; + int pgain; + bool known; + bool enabled; + std::auto_ptr victim; + + god_conduct_trigger(conduct_type c = NUM_CONDUCTS, + int pg = 0, + bool kn = true, + const monsters *vict = NULL); + + void set(conduct_type c = NUM_CONDUCTS, + int pg = 0, + bool kn = true, + const monsters *vict = NULL); + + ~god_conduct_trigger(); +}; + +bool is_evil_god(god_type god); +bool is_good_god(god_type god); +bool is_chaotic_god(god_type god); bool is_priest_god(god_type god); void simple_god_message( const char *event, god_type which_deity = GOD_NO_GOD ); int piety_breakpoint(int i); @@ -83,30 +108,4 @@ bool bless_follower(monsters *follower = NULL, bool god_hates_attacking_friend(god_type god, const actor *fr); -bool is_evil_god(god_type god); -bool is_good_god(god_type god); -bool is_chaotic_god(god_type god); - -// Calls did_god_conduct when the object goes out of scope. -struct god_conduct_trigger -{ - conduct_type conduct; - int pgain; - bool known; - bool enabled; - std::auto_ptr victim; - - god_conduct_trigger(conduct_type c = NUM_CONDUCTS, - int pg = 0, - bool kn = true, - const monsters *vict = NULL); - - void set(conduct_type c = NUM_CONDUCTS, - int pg = 0, - bool kn = true, - const monsters *vict = NULL); - - ~god_conduct_trigger(); -}; - #endif -- cgit v1.2.3-54-g00ecf