diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-14 08:29:33 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-14 08:29:33 +0000 |
commit | c2e225e37b6fd61253cb5804c719462fb29bb136 (patch) | |
tree | 360714dacc9f90aacba2300c0e877d7e7f8d487f /crawl-ref/source/mon-util.h | |
parent | 07cd5056664cc32435043eb78282a5831eda545e (diff) | |
download | crawl-ref-c2e225e37b6fd61253cb5804c719462fb29bb136.tar.gz crawl-ref-c2e225e37b6fd61253cb5804c719462fb29bb136.zip |
Added to classes actor, monsters and player the method can_pass_through(),
which returns true for a grid that the monster or player can pass trhough.
Also added new monster type "rock worm" to demonstrate a monster which
can pass through solid walls.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2459 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index 12b5807a8e..031f976bbe 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -649,4 +649,6 @@ std::string get_mon_shape_str(const monsters *mon); std::string get_mon_shape_str(const int type); std::string get_mon_shape_str(const mon_body_shape shape); +bool mons_class_can_pass(const int mclass, const dungeon_feature_type grid); + #endif |