summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/enum.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-14 08:29:33 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-14 08:29:33 +0000
commitc2e225e37b6fd61253cb5804c719462fb29bb136 (patch)
tree360714dacc9f90aacba2300c0e877d7e7f8d487f /crawl-ref/source/enum.h
parent07cd5056664cc32435043eb78282a5831eda545e (diff)
downloadcrawl-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/enum.h')
-rw-r--r--crawl-ref/source/enum.h15
1 files changed, 11 insertions, 4 deletions
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,