diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-04 05:26:00 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-04 05:26:00 +0000 |
commit | 0a2eef4f7c8d6cab369dee37adef2aba41cdf557 (patch) | |
tree | 7e1ec00e15db5ecc912038500c1fd64bfc38cefb /crawl-ref/source/mon-util.h | |
parent | ba61c9ea0ff447e24a9ad3f7f1b45160640c913b (diff) | |
download | crawl-ref-0a2eef4f7c8d6cab369dee37adef2aba41cdf557.tar.gz crawl-ref-0a2eef4f7c8d6cab369dee37adef2aba41cdf557.zip |
Add more habitat cleanups: rename HT_NORMAL to HT_LAND, remove
HT_SHALLOW_WATER, and rename HT_DEEP_WATER to HT_WATER.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3183 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index 0d9244aed6..8928397978 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -150,9 +150,8 @@ enum mon_intel_type // Must be in increasing intelligence order enum habitat_type { // Flying monsters will appear in all categories except rock walls - HT_NORMAL, // Normal critters - HT_SHALLOW_WATER, // Union of normal + water - HT_DEEP_WATER, // Water critters + HT_LAND = 0, // Normal critters + HT_WATER, // Water critters HT_LAVA, // Lava critters HT_ROCK_WALL, // Rock wall critters @@ -326,7 +325,7 @@ struct monsterentry size_type size; }; -habitat_type grid2habitat(int grid); +habitat_type grid2habitat(dungeon_feature_type grid); dungeon_feature_type habitat2grid(habitat_type ht); monsterentry *get_monster_data(int p_monsterid); @@ -636,7 +635,7 @@ bool monster_senior(const monsters *first, const monsters *second); monster_type draco_subspecies( const monsters *mon ); monster_type random_monster_at_grid(int x, int y); -monster_type random_monster_at_grid(int grid); +monster_type random_monster_at_grid(dungeon_feature_type grid); void init_mon_name_cache(); monster_type get_monster_by_name(std::string name, bool exact = false); |