diff options
author | Paul Gilbert | 2015-07-22 20:26:28 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-22 20:26:28 -0400 |
commit | 71296d6461bd8346793ff939b5d2e84d22c58dfa (patch) | |
tree | c2615022f05f6b0ffbe4bba30a340eb517ec7fa6 /engines/sherlock/tattoo/tattoo.h | |
parent | 1a680ddb134a6fe2bb70a07c5bd08d3f833b66e2 (diff) | |
download | scummvm-rg350-71296d6461bd8346793ff939b5d2e84d22c58dfa.tar.gz scummvm-rg350-71296d6461bd8346793ff939b5d2e84d22c58dfa.tar.bz2 scummvm-rg350-71296d6461bd8346793ff939b5d2e84d22c58dfa.zip |
SHERLOCK: RT: Split TattooEngine code into separate widget classes
Diffstat (limited to 'engines/sherlock/tattoo/tattoo.h')
-rw-r--r-- | engines/sherlock/tattoo/tattoo.h | 35 |
1 files changed, 2 insertions, 33 deletions
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<CreditLine> _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(); }; |