From 1f9d1e9c16da9fa6484b49dc4e4b05a89387116d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 2 Jun 2015 21:26:42 -0400 Subject: SHERLOCK: Implement RT drawAllShapes and support methods --- engines/sherlock/tattoo/tattoo_scene.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines/sherlock/tattoo/tattoo_scene.h') 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; -- cgit v1.2.3