summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 04:07:07 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 04:07:07 +0000
commitaf3cd3ff34ef5da884b2c673afe1321f0cf372e7 (patch)
treea574c2155f571f216f29c44b29e333ea320322a6 /crawl-ref/source/externs.h
parent71ed1a7fd6819916d79d194126c061ac1f087b11 (diff)
downloadcrawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.tar.gz
crawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.zip
Large tiles-related changes. Platform-specific rendering removed and replaced with SDL/OpenGL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 66c056c8a6..34cbf315dc 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -35,11 +35,14 @@
#include "store.h"
#ifdef USE_TILE
-struct TileFlavor
+struct tile_flavour
{
- char floor;
- char wall;
- char special;
+ // The floor tile to use.
+ unsigned char floor;
+ // The wall tile to use.
+ unsigned char wall;
+ // Used as a random value or for special cases e.g. (bazaars, gates).
+ unsigned char special;
};
#endif
@@ -1423,7 +1426,7 @@ public:
// indexed by grid coords
FixedArray<unsigned int,GXM, GYM> tile_bk_fg; // tile fg
FixedArray<unsigned int,GXM, GYM> tile_bk_bg; // tile bg
- FixedArray<TileFlavor, GXM, GYM> tile_flavor;
+ FixedArray<tile_flavour, GXM, GYM> tile_flv;
// indexed by (show-1) coords
FixedArray<unsigned int,ENV_SHOW_DIAMETER-2,ENV_SHOW_DIAMETER-2> tile_fg;
FixedArray<unsigned int,ENV_SHOW_DIAMETER-2,ENV_SHOW_DIAMETER-2> tile_bg;
@@ -1504,6 +1507,7 @@ struct feature_def
unsigned short em_colour; // Emphasised colour when in LoS.
unsigned short seen_em_colour; // Emphasised colour when out of LoS
unsigned flags;
+ map_feature minimap; // mini-map categorization
bool is_notable() const { return (flags & FFT_NOTABLE); }
};
@@ -1872,6 +1876,7 @@ public:
char tile_lava_col;
char tile_excluded_col;
char tile_excl_centre_col;
+ char tile_window_col;
#endif
#ifdef WIN32TILES
bool use_dos_char;