summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiledgnbuf.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-04-11 13:06:27 +0200
committerFlorian Diebold <flodiebold@gmail.com>2011-06-26 17:41:18 +0200
commit228770c101824ebc06384a2dc9bf0c27442c10e6 (patch)
treec7055c374cd68059fcf360848ff04cd78f00a56d /crawl-ref/source/tiledgnbuf.h
parentaa9fe6c8a5b138c1f5b65810d3fd63fbf218f6ad (diff)
downloadcrawl-ref-228770c101824ebc06384a2dc9bf0c27442c10e6.tar.gz
crawl-ref-228770c101824ebc06384a2dc9bf0c27442c10e6.zip
Move rendering logic to the client, make it more complete.
Diffstat (limited to 'crawl-ref/source/tiledgnbuf.h')
-rw-r--r--crawl-ref/source/tiledgnbuf.h55
1 files changed, 3 insertions, 52 deletions
diff --git a/crawl-ref/source/tiledgnbuf.h b/crawl-ref/source/tiledgnbuf.h
index 6792f6e029..eabead6ba7 100644
--- a/crawl-ref/source/tiledgnbuf.h
+++ b/crawl-ref/source/tiledgnbuf.h
@@ -1,61 +1,13 @@
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
#ifndef TILEDGNBUF_H
#define TILEDGNBUF_H
-#ifdef USE_TILE_LOCAL
- #include "tilebuf.h"
-#endif
-
-struct packed_cell
-{
- // For anything that requires multiple dungeon tiles (such as waves)
- // These tiles will be placed directly on top of the bg tile.
- enum { MAX_DNGN_OVERLAY = 20 };
- int num_dngn_overlay;
- FixedVector<int, MAX_DNGN_OVERLAY> dngn_overlay;
-
- tileidx_t fg;
- tileidx_t bg;
- tile_flavour flv;
-
- bool is_bloody;
- bool is_silenced;
- bool is_haloed;
- bool is_moldy;
- bool glowing_mold;
- bool is_sanctuary;
- bool is_liquefied;
- bool swamp_tree_water;
- char blood_rotation;
-
- packed_cell() : num_dngn_overlay(0), is_bloody(false), is_silenced(false),
- is_haloed(false), is_moldy(false), glowing_mold(false),
- is_sanctuary(false), is_liquefied(false),
- swamp_tree_water (false), blood_rotation(0) {}
-
- packed_cell(const packed_cell* c) : num_dngn_overlay(c->num_dngn_overlay),
- fg(c->fg), bg(c->bg), flv(c->flv),
- is_bloody(c->is_bloody),
- is_silenced(c->is_silenced),
- is_haloed(c->is_haloed),
- is_moldy(c->is_moldy),
- glowing_mold(c->glowing_mold),
- is_sanctuary(c->is_sanctuary),
- is_liquefied(c->is_liquefied),
- swamp_tree_water(c->swamp_tree_water),
- blood_rotation(c->blood_rotation) {}
-
- void clear();
-};
-
-// For a given location, pack any waves/ink/wall shadow tiles
-// that require knowledge of the surrounding env cells.
-void pack_cell_overlays(const coord_def &gc, packed_cell *cell);
+#include "tilebuf.h"
+#include "tilecell.h"
struct dolls_data;
class mcache_entry;
-#ifdef USE_TILE_LOCAL
class ImageManager;
// A set of buffers that takes as input the foreground/background pair
@@ -109,4 +61,3 @@ protected:
#endif
#endif
-#endif