summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileview.h
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-05-30 08:48:51 -0400
committerEnne Walker <enne.walker@gmail.com>2010-05-30 08:50:38 -0400
commit9517433e93cdf78ff6b337e50df6b09dd4e4fd95 (patch)
tree10858227f823d857778ee5be8e339886b038a413 /crawl-ref/source/tileview.h
parentbe734ca30eba735e20a8145bb22cdcc4de134ced (diff)
downloadcrawl-ref-9517433e93cdf78ff6b337e50df6b09dd4e4fd95.tar.gz
crawl-ref-9517433e93cdf78ff6b337e50df6b09dd4e4fd95.zip
Split off tilepick files into tileview.
tileview.h/cc now contains all the functions that change what is shown to the player via env. tilepick now contains only "const" functions to look up tiles.
Diffstat (limited to 'crawl-ref/source/tileview.h')
-rw-r--r--crawl-ref/source/tileview.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/crawl-ref/source/tileview.h b/crawl-ref/source/tileview.h
new file mode 100644
index 0000000000..d109435d18
--- /dev/null
+++ b/crawl-ref/source/tileview.h
@@ -0,0 +1,56 @@
+/*
+ * File: tileview.h
+ * Summary: Tile functions that modify the tiles or flavours in
+ the crawl_environment that are shown to the player.
+ */
+
+#ifndef TILEDRAW_H
+#define TILEDRAW_H
+
+#ifdef USE_TILE
+
+#include "tiledef_defines.h"
+
+struct cloud_struct;
+class coord_def;
+class dolls_data;
+class item_def;
+class monsters;
+class tile_flavour;
+
+// Initialize the flavour and the tile env when changing or creating levels.
+void tile_new_level(bool first_time);
+
+// Tile flavour
+
+// Set the default type of walls and floors.
+void tile_init_default_flavour();
+// Get the default types of walls and floors
+void tile_default_flv(level_area_type lev, branch_type br, tile_flavour &flv);
+// Clear the per-cell wall and floor flavours.
+void tile_clear_flavour();
+// Initialise types of walls and floors of the entire level using defaults.
+void tile_init_flavour();
+// Init the flavour of a single cell.
+void tile_init_flavour(const coord_def &gc);
+// Draw a halo using 'tile' (which has 9 variations) around any features
+// that match target.
+void tile_floor_halo(dungeon_feature_type target, tileidx_t tile);
+
+
+// Tile view related
+
+void tile_place_item(const coord_def &gc, const item_def &item);
+void tile_place_item_marker(const coord_def &gc, const item_def &item);
+void tile_place_monster(const coord_def &gc, const monsters *mons,
+ bool foreground = true, bool detected = false);
+void tile_place_cloud(const coord_def &gc, const cloud_struct &cl);
+void tile_place_ray(const coord_def &gc, bool in_range);
+void tile_draw_rays(bool reset_count);
+
+void tile_apply_animations(tileidx_t bg, tile_flavour *flv);
+void tile_apply_properties(const coord_def &gc, tileidx_t *fg,
+ tileidx_t *bg);
+
+#endif
+#endif