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/enum.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/enum.h') diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index b2895d7eaa..fad1046349 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -793,11 +793,11 @@ enum dungeon_feature_type DNGN_UNSEEN, // 0 DNGN_CLOSED_DOOR, DNGN_SECRET_DOOR, + DNGN_WAX_WALL, + DNGN_METAL_WALL, + DNGN_GREEN_CRYSTAL_WALL, // 5 DNGN_ROCK_WALL, DNGN_STONE_WALL, - DNGN_METAL_WALL, // 5 - DNGN_GREEN_CRYSTAL_WALL, - DNGN_WAX_WALL, DNGN_PERMAROCK_WALL, // 8 - for undiggable walls DNGN_CLEAR_ROCK_WALL, // 9 - Transparent DNGN_CLEAR_STONE_WALL, // 10 - Transparent @@ -805,9 +805,13 @@ enum dungeon_feature_type DNGN_ORCISH_IDOL, // 12 - Can see past // XXX: lowest/highest grid value which is a wall - DNGN_MINWALL = DNGN_ROCK_WALL, + DNGN_MINWALL = DNGN_WAX_WALL, DNGN_MAXWALL = DNGN_CLEAR_PERMAROCK_WALL, + // Random wall types for big rooms + DNGN_RNDWALL_MIN = DNGN_METAL_WALL, + DNGN_RNDWALL_MAX = DNGN_STONE_WALL, + // XXX: highest grid value which is opaque DNGN_MAXOPAQUE = DNGN_PERMAROCK_WALL, @@ -1750,6 +1754,9 @@ enum monster_type // (int) menv[].type MONS_WATER_ELEMENTAL, MONS_SWAMP_WORM, // 435 + // Monsters which move through rock: + MONS_ROCK_WORM = 440, + // Statuary MONS_ORANGE_STATUE, MONS_SILVER_STATUE, -- cgit v1.2.3-54-g00ecf