From 71296d6461bd8346793ff939b5d2e84d22c58dfa Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 22 Jul 2015 20:26:28 -0400 Subject: SHERLOCK: RT: Split TattooEngine code into separate widget classes --- engines/sherlock/tattoo/tattoo.h | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'engines/sherlock/tattoo/tattoo.h') diff --git a/engines/sherlock/tattoo/tattoo.h b/engines/sherlock/tattoo/tattoo.h index a9798dce41..774e243733 100644 --- a/engines/sherlock/tattoo/tattoo.h +++ b/engines/sherlock/tattoo/tattoo.h @@ -25,6 +25,7 @@ #include "sherlock/sherlock.h" #include "sherlock/tattoo/tattoo_darts.h" +#include "sherlock/tattoo/widget_hangman.h" namespace Sherlock { @@ -51,21 +52,10 @@ enum { FLAG_ALT_MAP_MUSIC = 525 }; -struct CreditLine { - Common::Point _position; - int _xOffset; - int _width; - Common::String _line, _line2; - - CreditLine(const Common::String &line, const Common::Point &pt, int width) : - _line(line), _position(pt), _width(width), _xOffset(0) {} -}; - class TattooEngine : public SherlockEngine { private: Darts _darts; - Common::Array _creditLines; - int _creditSpeed; + WidgetHangman _hangmanWidget; /** * Loads the initial palette for the game @@ -89,7 +79,6 @@ protected: */ virtual void startScene(); public: - bool _creditsActive; bool _runningProlog; bool _fastMode, _allowFastMode; bool _transparentMenus; @@ -97,26 +86,6 @@ public: TattooEngine(OSystem *syst, const SherlockGameDescription *gameDesc); virtual ~TattooEngine(); - /** - * Initialize and load credit data for display - */ - void initCredits(); - - /** - * Draw credits on the screen - */ - void drawCredits(); - - /** - * Blit the drawn credits to the screen - */ - void blitCredits(); - - /** - * Erase any area of the screen covered by credits - */ - void eraseCredits(); - void doHangManPuzzle(); }; -- cgit v1.2.3