aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/interface_scene.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-15 07:32:09 -0400
committerPaul Gilbert2018-04-15 07:32:09 -0400
commit95741aa3e4d8ca7287949e3c47c7609412399d86 (patch)
treef4066af8182c75b33a55e1dec722f583e6edcc5b /engines/xeen/interface_scene.h
parent57ae3a6fec394983eb02778d42ca06d5028c15ca (diff)
downloadscummvm-rg350-95741aa3e4d8ca7287949e3c47c7609412399d86.tar.gz
scummvm-rg350-95741aa3e4d8ca7287949e3c47c7609412399d86.tar.bz2
scummvm-rg350-95741aa3e4d8ca7287949e3c47c7609412399d86.zip
XEEN: Yet further fixes to clip scene drawing to scene area
Diffstat (limited to 'engines/xeen/interface_scene.h')
-rw-r--r--engines/xeen/interface_scene.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/xeen/interface_scene.h b/engines/xeen/interface_scene.h
index 0c181522bb..18f1f58a36 100644
--- a/engines/xeen/interface_scene.h
+++ b/engines/xeen/interface_scene.h
@@ -42,14 +42,28 @@ public:
DrawStruct * const _attackImgs3;
DrawStruct * const _attackImgs4;
public:
+ /**
+ * Constructor
+ */
OutdoorDrawList();
+ /**
+ * Get a draw list entry
+ */
DrawStruct &operator[](int idx) {
assert(idx < size());
return _data[idx];
}
+ /**
+ * Return the size of the list
+ */
int size() const { return 132; }
+
+ /**
+ * Draw the list to the scene
+ */
+ void draw();
};
class IndoorDrawList {
@@ -80,12 +94,23 @@ public:
public:
IndoorDrawList();
+ /**
+ * Get a draw list entry
+ */
DrawStruct &operator[](int idx) {
assert(idx < size());
return _data[idx];
}
+ /**
+ * Return the size of the list
+ */
int size() const { return 170; }
+
+ /**
+ * Draw the list to the scene
+ */
+ void draw();
};
class InterfaceScene {