summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-21 10:49:08 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-21 10:49:08 +0000
commit300b157c23f4b3a0727a19b3fd89d24e909f5184 (patch)
treec7a447c9301f2dac0182878f85b845d225fb671c /crawl-ref/source/misc.h
parent724da7b6f8eebce7b00ac5f58702b7cd2d868a69 (diff)
downloadcrawl-ref-300b157c23f4b3a0727a19b3fd89d24e909f5184.tar.gz
crawl-ref-300b157c23f4b3a0727a19b3fd89d24e909f5184.zip
Fix 2085598: Nemelex won't be disappointed if there are invisible monsters
nearby when drawing from Destruction, even if you can't see them. Xom can now act on creatures you can't see. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6960 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.h')
-rw-r--r--crawl-ref/source/misc.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h
index 442cefbbc0..35b5df6daa 100644
--- a/crawl-ref/source/misc.h
+++ b/crawl-ref/source/misc.h
@@ -72,14 +72,17 @@ void curare_hits_player(int agent, int degree);
bool mons_is_safe(const monsters *mon, bool want_move = false);
-void get_playervisible_monsters(std::vector<monsters*>& mons,
- bool want_move = false, bool just_check = false,
- bool dangerous_only = false, int range = -1);
+std::vector<monsters*> get_nearby_monsters(bool want_move = false,
+ bool just_check = false,
+ bool dangerous_only = false,
+ bool require_visible = true,
+ int range = -1);
bool i_feel_safe(bool announce = false, bool want_move = false,
bool just_monsters = false, int range = -1);
-bool there_are_monsters_nearby();
+bool there_are_monsters_nearby(bool dangerous_only = false,
+ bool require_visible = true);
void setup_environment_effects();