aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_scene.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-02 21:26:42 -0400
committerPaul Gilbert2015-06-02 21:26:42 -0400
commit1f9d1e9c16da9fa6484b49dc4e4b05a89387116d (patch)
treefc3b29cd8a20af386814e2cc9ab539a2f96b33fc /engines/sherlock/tattoo/tattoo_scene.h
parentfdd220e9f77658d765ecf2c9d2e5fb4f022663ea (diff)
downloadscummvm-rg350-1f9d1e9c16da9fa6484b49dc4e4b05a89387116d.tar.gz
scummvm-rg350-1f9d1e9c16da9fa6484b49dc4e4b05a89387116d.tar.bz2
scummvm-rg350-1f9d1e9c16da9fa6484b49dc4e4b05a89387116d.zip
SHERLOCK: Implement RT drawAllShapes and support methods
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_scene.h')
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.h b/engines/sherlock/tattoo/tattoo_scene.h
index 91e7ad4665..35f5957c34 100644
--- a/engines/sherlock/tattoo/tattoo_scene.h
+++ b/engines/sherlock/tattoo/tattoo_scene.h
@@ -46,6 +46,12 @@ private:
void doBgAnimUpdateBgObjectsAndAnim();
void doBgAnimDrawSprites();
+
+ /**
+ * Returns the scale value for the passed co-ordinates. This is taken from the scene's
+ * scale zones, interpolating inbetween the top and bottom values of the zones as needed
+ */
+ int getScaleVal(const Common::Point &pt);
protected:
/**
* Checks all the background shapes. If a background shape is animating,
@@ -53,6 +59,11 @@ protected:
* colliding with another shape, it will also flag it as needing drawing
*/
virtual void checkBgShapes();
+
+ /**
+ * Draw all the shapes, people and NPCs in the correct order
+ */
+ virtual void drawAllShapes();
public:
ImageFile *_mask, *_mask1;
CAnimStream _activeCAnim;