summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/direct.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/direct.h')
-rw-r--r--crawl-ref/source/direct.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/direct.h b/crawl-ref/source/direct.h
index 9d9198b1a1..ad4f6f3b44 100644
--- a/crawl-ref/source/direct.h
+++ b/crawl-ref/source/direct.h
@@ -18,6 +18,19 @@
#include "enum.h"
#include "ray.h"
+class crawl_view_buffer
+{
+public:
+ crawl_view_buffer();
+ ~crawl_view_buffer();
+ void size(const coord_def &size);
+ operator screen_buffer_t * () { return (buffer); }
+
+ void draw();
+private:
+ screen_buffer_t *buffer;
+};
+
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: acr - debug - effects - it_use3 - item_use - spells1 -
@@ -34,6 +47,8 @@ public:
coord_def msgp; // Left-top pos of the message pane.
coord_def msgsz; // Size of the message pane.
+ crawl_view_buffer vbuf; // Buffer for drawing the main game map.
+
coord_def vgrdc; // What grid pos is at the centre of the view
// usually you.pos().