summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-spl.h
diff options
context:
space:
mode:
authorEnne Walker <ennewalker@users.sourceforge.net>2010-04-19 20:00:06 -0400
committerEnne Walker <ennewalker@users.sourceforge.net>2010-04-25 19:33:13 -0400
commit8305dc11a61b732984b4bf2a2f8c8f48af84630e (patch)
tree9f605e327b60ab79111ae7c25bec938ed2261a0b /crawl-ref/source/tilereg-spl.h
parentedacdc0db313c0f5385631dfcf560f1fdf8e7c8a (diff)
downloadcrawl-ref-8305dc11a61b732984b4bf2a2f8c8f48af84630e.tar.gz
crawl-ref-8305dc11a61b732984b4bf2a2f8c8f48af84630e.zip
Split tilereg.h/cc into multiple files.
No functional changes, just rearranging and exposing functions where needed.
Diffstat (limited to 'crawl-ref/source/tilereg-spl.h')
-rw-r--r--crawl-ref/source/tilereg-spl.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-spl.h b/crawl-ref/source/tilereg-spl.h
new file mode 100644
index 0000000000..37a66ba9a9
--- /dev/null
+++ b/crawl-ref/source/tilereg-spl.h
@@ -0,0 +1,35 @@
+/*
+ * File: tilereg_spl.h
+ * Created by: ennewalker on Sat Jan 5 01:33:53 2008 UTC
+ */
+
+#ifdef USE_TILE
+#ifndef TILEREG_SPL_H
+#define TILEREG_SPL_H
+
+#include "tilereg-grid.h"
+
+class SpellRegion : public GridRegion
+{
+public:
+ SpellRegion(const TileRegionInit &init);
+
+ virtual void update();
+ virtual int handle_mouse(MouseEvent &event);
+ virtual bool update_tip_text(std::string &tip);
+ virtual bool update_tab_tip_text(std::string &tip, bool active);
+ virtual bool update_alt_text(std::string &alt);
+ virtual bool check_memorise();
+
+ virtual const std::string name() const { return "Spells"; }
+
+protected:
+ bool memorise;
+
+ virtual void pack_buffers();
+ virtual void draw_tag();
+ virtual void activate();
+};
+
+#endif
+#endif