aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-21 08:27:44 +0530
committerEugene Sandulenko2019-09-03 17:16:54 +0200
commit94d443bfa8bb14b8b2ea8a10bd8a5c085268be76 (patch)
treea41eab1b7834ecf829ad3c8b408805a29214a4b0 /engines/hdb
parentcb341ee6cc9ef0d6a3e28584b13e1ab8797dd840 (diff)
downloadscummvm-rg350-94d443bfa8bb14b8b2ea8a10bd8a5c085268be76.tar.gz
scummvm-rg350-94d443bfa8bb14b8b2ea8a10bd8a5c085268be76.tar.bz2
scummvm-rg350-94d443bfa8bb14b8b2ea8a10bd8a5c085268be76.zip
HDB: Add animateTile()
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/draw-manager.cpp4
-rw-r--r--engines/hdb/draw-manager.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index afc6b43dcc..97a4cca263 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -377,6 +377,10 @@ void DrawMan::drawSky() {
}
}
+int DrawMan::animateTile(int tileIndex) {
+ return _tLookupArray[tileIndex].animIndex;
+}
+
Picture::Picture() : _width(0), _height(0), _name("") {
_surface.create(_width, _height, g_hdb->_format);
}
diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h
index 69d44ae60d..3f97d1b65b 100644
--- a/engines/hdb/draw-manager.h
+++ b/engines/hdb/draw-manager.h
@@ -95,6 +95,8 @@ public:
void draw3DStarsLeft();
void drawSky();
+ int animateTile(int tileIndex);
+
private:
int _numTiles;
TileLookup *_tLookupArray;