summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.h
diff options
context:
space:
mode:
authormark <mark@ubuntu.(none)>2010-11-10 18:56:05 +0000
committerMark Mackey <mark@swallowtail.org>2010-11-10 21:23:33 +0000
commit2eb4bbe48fd1767ff147725d0606d6702076e1eb (patch)
tree99974c03ced3ec91810faa96b1e718ba9285e348 /crawl-ref/source/mon-behv.h
parenta2e8e47f6452e66a34595478ae625fdf8f775313 (diff)
parent4080d7d1ebf51243d9da41fc2b10790858bb6bc7 (diff)
downloadcrawl-ref-2eb4bbe48fd1767ff147725d0606d6702076e1eb.tar.gz
crawl-ref-2eb4bbe48fd1767ff147725d0606d6702076e1eb.zip
Merge branch 'zotdef-0.6' into zotdef-master
Much manual merging, and a few fixes for changes in the code (particularly monsters->monster and the like). Now compiles and seems to work. Zot Def added to start menu.
Diffstat (limited to 'crawl-ref/source/mon-behv.h')
-rw-r--r--crawl-ref/source/mon-behv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-behv.h b/crawl-ref/source/mon-behv.h
index e654d081db..7ea4d67988 100644
--- a/crawl-ref/source/mon-behv.h
+++ b/crawl-ref/source/mon-behv.h
@@ -39,4 +39,12 @@ void make_mons_leave_level(monster* mon);
bool monster_can_hit_monster(monster* mons, const monster* targ);
+// For Zotdef: the target position of MHITYOU monsters is
+// the orb, if it's on the ground. Note that zotdef_target()
+// returns the orb position, or you.pos if the orb's not
+// on the ground.
+#define PLAYER_POS (crawl_state.game_is_zotdef()?zotdef_target():you.pos())
+
+coord_def zotdef_target();
+
#endif