summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.h
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-27 15:12:42 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-27 15:12:42 +0000
commitefde5f5a0ac8266096eaf03b82cfaf18db0d7c29 (patch)
tree25ed5bee6cafca50fca81b47de30ffc1a3e658d3 /crawl-ref/source/tilereg.h
parent074c9aa085ffb0538baf9eb247d14454ca040540 (diff)
downloadcrawl-ref-efde5f5a0ac8266096eaf03b82cfaf18db0d7c29.tar.gz
crawl-ref-efde5f5a0ac8266096eaf03b82cfaf18db0d7c29.zip
[2021068] Projectiles, explosions, beams, etc. now drawn again in tiles version.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7039 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.h')
-rw-r--r--crawl-ref/source/tilereg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg.h b/crawl-ref/source/tilereg.h
index 4c1913b5a8..fbfe411318 100644
--- a/crawl-ref/source/tilereg.h
+++ b/crawl-ref/source/tilereg.h
@@ -247,6 +247,9 @@ public:
const coord_def &get_cursor() const { return m_cursor[CURSOR_MOUSE]; }
+ void add_overlay(const coord_def &gc, int idx);
+ void clear_overlays();
+
protected:
void draw_background(unsigned int bg, unsigned int x, unsigned int y);
void draw_mcache(mcache_entry *entry, unsigned int x, unsigned int y);
@@ -263,6 +266,13 @@ protected:
int m_cy_to_gy;
coord_def m_cursor[CURSOR_MAX];
std::vector<TextTag> m_tags[TAG_MAX];
+
+ struct tile_overlay
+ {
+ coord_def gc;
+ int idx;
+ };
+ std::vector<tile_overlay> m_overlays;
};
class InventoryTile