From c2e225e37b6fd61253cb5804c719462fb29bb136 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 14 Oct 2007 08:29:33 +0000 Subject: 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 --- crawl-ref/source/mon-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/mon-util.h') 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 -- cgit v1.2.3-54-g00ecf