diff options
author | DracoOmega <draco_omega@live.com> | 2013-02-19 20:08:41 -0330 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2013-02-21 01:36:17 -0600 |
commit | 958b2a24e60558b7bd454e13ac92cac99e118189 (patch) | |
tree | 68b75a63e72e953f28c6d86ad59df0cf11b36622 /crawl-ref/source/terrain.h | |
parent | 36b8c0b5190708be8f06db318fe4f9859df001a5 (diff) | |
download | crawl-ref-958b2a24e60558b7bd454e13ac92cac99e118189.tar.gz crawl-ref-958b2a24e60558b7bd454e13ac92cac99e118189.zip |
Refactor some direct uses of dungeon feature enum ordering
Rather than relying on feat >= DNGN_FLOOR having the same semantics
as 'open space', wrap this in boolean functions (which already largely
exist). This is also more robust if the backend ever changes.
Diffstat (limited to 'crawl-ref/source/terrain.h')
-rw-r--r-- | crawl-ref/source/terrain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h index cee90264cc..cb90df7808 100644 --- a/crawl-ref/source/terrain.h +++ b/crawl-ref/source/terrain.h @@ -39,6 +39,7 @@ bool feat_is_wall(dungeon_feature_type feat); bool feat_is_opaque(dungeon_feature_type feat); bool feat_is_solid(dungeon_feature_type feat); bool feat_has_solid_floor(dungeon_feature_type feat); +bool feat_has_dry_floor(dungeon_feature_type feat); bool feat_is_door(dungeon_feature_type feat); bool feat_is_closed_door(dungeon_feature_type feat); bool feat_is_statue_or_idol(dungeon_feature_type feat); |