summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.h
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2011-05-28 14:24:59 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2011-05-28 15:29:43 -0500
commit90de47b84130d7ed4c354fdc25ff603810c55639 (patch)
treeb25e155e2c65ffc15c4941b4ca543f0fe985b3e3 /crawl-ref/source/religion.h
parent9794251b0211a14ac50deda96dc7e62ac3623f08 (diff)
downloadcrawl-ref-90de47b84130d7ed4c354fdc25ff603810c55639.tar.gz
crawl-ref-90de47b84130d7ed4c354fdc25ff603810c55639.zip
Add wrapper functions for random gods and altars.
This simplifies checks for them. Also, these have parameters indicating whether no god/altar is an acceptable return value, as control over that is useful.
Diffstat (limited to 'crawl-ref/source/religion.h')
-rw-r--r--crawl-ref/source/religion.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h
index a00ab1bb64..7698072569 100644
--- a/crawl-ref/source/religion.h
+++ b/crawl-ref/source/religion.h
@@ -27,6 +27,9 @@ bool is_chaotic_god(god_type god);
// Returns true if the god is not present in the current game. This is
// orthogonal to whether the player can worship the god in question.
bool is_unavailable_god(god_type god);
+
+god_type random_god(bool disallow_no_god = false);
+
void simple_god_message(const char *event, god_type which_deity = you.religion);
int piety_breakpoint(int i);
std::string god_name(god_type which_god, bool long_name = false);