From 86d488e3efa0b1d8ec12223527235e3ef3a5fec2 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 31 Dec 2008 08:41:27 +0000 Subject: 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 --- crawl-ref/source/directn.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/directn.h') diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h index 3d95e9f8d7..1759496612 100644 --- a/crawl-ref/source/directn.h +++ b/crawl-ref/source/directn.h @@ -74,6 +74,11 @@ public: return viewp + viewhalfsz; } + coord_def glosc() const + { + return (glos1 + glos2) / 2; + } + bool in_grid_los(const coord_def &c) const { return (c.x >= glos1.x && c.x <= glos2.x -- cgit v1.2.3-54-g00ecf