summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-26 20:21:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-26 20:21:02 +0000
commit3cfe89ce027c008e6fe651b79171afa5da78cd85 (patch)
tree2144e4b9ebf175f54ed9afb3f604d61bcaba0514 /crawl-ref/source/monplace.h
parent3df2c03fc7434ef10dc8608617425c0969d18916 (diff)
downloadcrawl-ref-3cfe89ce027c008e6fe651b79171afa5da78cd85.tar.gz
crawl-ref-3cfe89ce027c008e6fe651b79171afa5da78cd85.zip
Fix "suicidal travelling" towards monsters you can see through glass.
Fix =sustenance not being treated as useless for Mummies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7982 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.h')
-rw-r--r--crawl-ref/source/monplace.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h
index 24be04f149..300803fe2f 100644
--- a/crawl-ref/source/monplace.h
+++ b/crawl-ref/source/monplace.h
@@ -352,6 +352,8 @@ void get_vault_mon_list(std::vector<mons_spec> &list);
* *********************************************************************** */
void setup_vault_mon_list();
+int mons_tracking_range(const monsters *mon);
+
class monster_pathfind
{
public:
@@ -361,7 +363,8 @@ public:
// public methods
void set_range(int r);
bool init_pathfind(monsters *mon, coord_def dest,
- bool diag = true, bool msg = false);
+ bool diag = true, bool msg = false,
+ bool pass_unmapped = false);
bool init_pathfind(coord_def src, coord_def dest,
bool diag = true, bool msg = false);
bool start_pathfind(bool msg = false);
@@ -390,6 +393,11 @@ protected:
// If false, do not move diagonally along the path.
bool allow_diagonals;
+ // If true, unmapped terrain is treated as traversable no matter the
+ // monster involved.
+ // (Used for player estimates of whether a monster can travel somewhere.)
+ bool traverse_unmapped;
+
// Maximum range to search between start and target. None, if zero.
int range;