summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 08:41:27 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 08:41:27 +0000
commit86d488e3efa0b1d8ec12223527235e3ef3a5fec2 (patch)
tree88b3d97a6f74ea6eb21405b3072e1e1a9c6830b0 /crawl-ref/source/mapdef.h
parent496a1b4c58651aa28878db51bb1d5f3534d8a0a5 (diff)
downloadcrawl-ref-86d488e3efa0b1d8ec12223527235e3ef3a5fec2.tar.gz
crawl-ref-86d488e3efa0b1d8ec12223527235e3ef3a5fec2.zip
Add arena mode, activated on the command-line by 'crawl -arena "monster v monster"' (eg: crawl -arena "Sigmund v Jessica") to let monsters fight each other undisturbed by the player. Good to examine monster AI and monster behaviour when the player is AWOL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8059 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h
index 2d43e59519..faca8b7c0a 100644
--- a/crawl-ref/source/mapdef.h
+++ b/crawl-ref/source/mapdef.h
@@ -417,7 +417,9 @@ class mons_spec
int mid;
level_id place;
monster_type monbase; // Base monster for zombies and dracs.
+ mon_attitude_type attitude;
int number; // Head count for hydras
+ int quantity; // Number of monsters (usually 1).
int genweight, mlevel;
bool fix_mons;
bool generate_awake;
@@ -432,9 +434,10 @@ class mons_spec
int num = 0,
int gw = 10, int ml = 0,
bool _fixmons = false, bool awaken = false, bool patrol = false)
- : mid(id), place(), monbase(base), number(num), genweight(gw),
- mlevel(ml), fix_mons(_fixmons), generate_awake(awaken),
- patrolling(false), band(false), colour(BLACK), items()
+ : mid(id), place(), monbase(base), attitude(ATT_HOSTILE), number(num),
+ quantity(1), genweight(gw), mlevel(ml), fix_mons(_fixmons),
+ generate_awake(awaken), patrolling(false), band(false),
+ colour(BLACK), items()
{
}
};