1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
* File: tilepick.h
* Summary: Look-up functions for dungeon and item tiles.
*/
#ifndef TILEPICK_H
#define TILEPICK_H
#ifdef USE_TILE
#include "tiledef_defines.h"
struct bolt;
struct cloud_struct;
class coord_def;
class item_def;
class monsters;
struct show_type;
// Tile index lookup from Crawl data.
tileidx_t tileidx_feature(const coord_def &gc);
tileidx_t tileidx_out_of_bounds(int branch);
void tileidx_from_show(tileidx_t *fg, tileidx_t *bg, const show_type &show);
void tileidx_out_of_los(tileidx_t *fg, tileidx_t *bg, const coord_def& gc);
tileidx_t tileidx_monster(const monsters *mon);
tileidx_t tileidx_draco_base(const monsters *mon);
tileidx_t tileidx_draco_job(const monsters *mon);
tileidx_t tileidx_item(const item_def &item);
tileidx_t tileidx_item_throw(const item_def &item, int dx, int dy);
tileidx_t tileidx_show_item(int show_item_type);
tileidx_t tileidx_known_base_item(tileidx_t label);
tileidx_t tileidx_cloud(const cloud_struct &cl);
tileidx_t tileidx_bolt(const bolt &bolt);
tileidx_t tileidx_zap(int colour);
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_unseen_flag(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);
// For a given fg/bg set of tile indices and a 1 character prefix,
// return index, flag, and tile name as a printable string.
std::string tile_debug_string(tileidx_t fg, tileidx_t bg, char prefix);
void tile_init_props(monsters *mon);
#endif
#endif
|