summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.h
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-24 01:00:14 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-24 03:19:36 -0800
commit2805b3beebfd7913794a412cc5a2d68042051257 (patch)
treedb1ae39d931770bcee89ed11f1f4c9d25a634451 /crawl-ref/source/player.h
parent6ca662b8cced71f9eb5938519540cd9aa2207c09 (diff)
downloadcrawl-ref-2805b3beebfd7913794a412cc5a2d68042051257.tar.gz
crawl-ref-2805b3beebfd7913794a412cc5a2d68042051257.zip
you.never_die (player::never_die)
If the macros DEBUG or WIZARD are defined, then class player will have the member never_die, which if set to true makes any deadly calls to ouch() return without the game ending.
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r--crawl-ref/source/player.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h
index c6963afdf0..b255150950 100644
--- a/crawl-ref/source/player.h
+++ b/crawl-ref/source/player.h
@@ -295,6 +295,12 @@ public:
// and restored.
std::vector<int> beholders;
+#if WIZARD || DEBUG
+ // If set to true, then any call to ouch() which would cuase the player
+ // to die automatically returns without ending the game.
+ bool never_die;
+#endif
+
protected:
FixedVector<PlaceInfo, NUM_BRANCHES> branch_info;
FixedVector<PlaceInfo, NUM_LEVEL_AREA_TYPES - 1> non_branch_info;