summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/arena.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 08:42:03 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 08:42:03 +0000
commit0bd8f00f48363b713105ba476661176913316ef4 (patch)
treeb28e2b1895a6d2cc087162d306d701bc725a13d5 /crawl-ref/source/arena.h
parent400b9fc5049359bf0f8b6e51c1b0561ec77cd727 (diff)
downloadcrawl-ref-0bd8f00f48363b713105ba476661176913316ef4.tar.gz
crawl-ref-0bd8f00f48363b713105ba476661176913316ef4.zip
The arena now prevents undesired random monsters from being placed by telling
pick_random_monster() to try something else, rather than by culling them after they're placed. By default the arena prevents zero xp monsters from being randomly placed. To allow them to be placed use the spec tag "allow_zero_xp". Removed the arena spec tag "alert", since it's no longer needed. Added the arena spec tag "cycle_random", which if set causes pick_random_monster() to cycle through all the monsters valid for the level_id chosen as the arena's place. Produces a greater variety of monsters when using test spawners. If arena mode is dumping message to the output file then prefix error messages with "ERROR: " and diagnostic messages with "DIAG: " git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8165 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/arena.h')
-rw-r--r--crawl-ref/source/arena.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/arena.h b/crawl-ref/source/arena.h
index 864e643d24..8352860538 100644
--- a/crawl-ref/source/arena.h
+++ b/crawl-ref/source/arena.h
@@ -2,7 +2,22 @@
#define ARENA_H
#include "AppHdr.h"
+#include "enum.h"
+
+class level_id;
+class monsters;
+class mgen_data;
void run_arena();
+monster_type arena_pick_random_monster(const level_id &place, int power,
+ int &lev_mons);
+
+bool arena_veto_random_monster(monster_type type);
+
+void arena_placed_monster(monsters *monster, const mgen_data &mg,
+ bool first_band_member);
+
+void arena_monster_died(monsters *monster, killer_type killer,
+ int killer_index, bool silent);
#endif