diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-05-30 09:34:51 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-05-30 09:34:51 -0400 |
commit | 1d8523f49af4857cade98b1b383ab8de2c9b6f37 (patch) | |
tree | c6921b6d6f8df3381c6b500ac6edd00bffe33494 /crawl-ref/source/tilepick.h | |
parent | 9517433e93cdf78ff6b337e50df6b09dd4e4fd95 (diff) | |
download | crawl-ref-1d8523f49af4857cade98b1b383ab8de2c9b6f37.tar.gz crawl-ref-1d8523f49af4857cade98b1b383ab8de2c9b6f37.zip |
Split player tile logic out from tilepick.cc.
All player tile look-ups are now in tilepick-p.cc.
Diffstat (limited to 'crawl-ref/source/tilepick.h')
-rw-r--r-- | crawl-ref/source/tilepick.h | 56 |
1 files changed, 22 insertions, 34 deletions
diff --git a/crawl-ref/source/tilepick.h b/crawl-ref/source/tilepick.h index ac2a186486..349147d45b 100644 --- a/crawl-ref/source/tilepick.h +++ b/crawl-ref/source/tilepick.h @@ -1,3 +1,8 @@ +/* + * File: tilepick.h + * Summary: Look-up functions for dungeon and item tiles. + */ + #ifndef TILEPICK_H #define TILEPICK_H @@ -8,55 +13,38 @@ struct bolt; struct cloud_struct; class coord_def; -class dolls_data; class item_def; class monsters; -class tile_flavour; // Tile index lookup from Crawl data. tileidx_t tileidx_feature(dungeon_feature_type feat, const coord_def &gc); -tileidx_t tileidx_player(int job); -void tileidx_unseen(tileidx_t *fg, tileidx_t *bg, screen_buffer_t ch, - const coord_def& gc); + +tileidx_t tileidx_monster_base(const monsters *mon, bool detected = false); +tileidx_t tileidx_monster(const monsters *mon, bool detected = false); + tileidx_t tileidx_item(const item_def &item); tileidx_t tileidx_item_throw(const item_def &item, int dx, int dy); + +tileidx_t tileidx_cloud(const cloud_struct &cl); tileidx_t tileidx_bolt(const bolt &bolt); tileidx_t tileidx_zap(int colour); -tileidx_t tileidx_unseen_terrain(const coord_def &gc, int what); -tileidx_t tileidx_unseen_flag(const coord_def &gc); -tileidx_t tileidx_monster_base(const monsters *mon, bool detected = false); -tileidx_t tileidx_monster(const monsters *mon, bool detected = false); tileidx_t tileidx_spell(spell_type spell); + tileidx_t tileidx_known_brand(const item_def &item); tileidx_t tileidx_corpse_brand(const item_def &item); + tileidx_t get_clean_map_idx(tileidx_t tile_idx); -tileidx_t tileidx_cloud(const cloud_struct &cl); +tileidx_t tileidx_unseen_terrain(const coord_def &gc, int what); +tileidx_t tileidx_unseen_flag(const coord_def &gc); +void tileidx_unseen(tileidx_t *fg, tileidx_t *bg, screen_buffer_t ch, + const coord_def& gc); + +// Return the level of enchantment as an int. None is 0, Randart is 4. +int enchant_to_int(const item_def &item); +// If tile has variations, select among them based upon the enchant of item. +tileidx_t tileidx_enchant_equ(const item_def &item, tileidx_t tile); -// Player equipment lookup -tileidx_t tilep_equ_weapon(const item_def &item); -tileidx_t tilep_equ_shield(const item_def &item); -tileidx_t tilep_equ_armour(const item_def &item); -tileidx_t tilep_equ_cloak(const item_def &item); -tileidx_t tilep_equ_helm(const item_def &item); -tileidx_t tilep_equ_gloves(const item_def &item); -tileidx_t tilep_equ_boots(const item_def &item); - - -// Player tile related -int get_gender_from_tile(const dolls_data &doll); -bool is_player_tile(tileidx_t tile, tileidx_t base_tile); -tileidx_t tilep_species_to_base_tile(int sp, int level); - -void tilep_draconian_init(int sp, int level, tileidx_t *base, - tileidx_t *head, tileidx_t *wing); -void tilep_race_default(int sp, int gender, int level, dolls_data *doll); -void tilep_job_default(int job, int gender, dolls_data *doll); -void tilep_calc_flags(const dolls_data &data, int flag[]); -void tilep_part_to_str(int number, char *buf); -int tilep_str_to_part(char *str); -void tilep_scan_parts(char *fbuf, dolls_data &doll, int species, int level); -void tilep_print_parts(char *fbuf, const dolls_data &doll); #endif #endif |