diff options
Diffstat (limited to 'engines/hugo/intro_v3w.cpp')
-rw-r--r-- | engines/hugo/intro_v3w.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/engines/hugo/intro_v3w.cpp b/engines/hugo/intro_v3w.cpp index 924fa46805..06fe1814fe 100644 --- a/engines/hugo/intro_v3w.cpp +++ b/engines/hugo/intro_v3w.cpp @@ -40,7 +40,7 @@ namespace Hugo { -intro_v3w::intro_v3w(HugoEngine &vm) : IntroHandler(vm) { +intro_v3w::intro_v3w(HugoEngine *vm) : IntroHandler(vm) { } intro_v3w::~intro_v3w() { @@ -49,39 +49,43 @@ intro_v3w::~intro_v3w() { void intro_v3w::preNewGame() { } +/** +* Hugo 3 - show map and set up for introPlay() +*/ void intro_v3w::introInit() { -// Hugo 3 - show map and set up for introPlay() //#if STORY - _vm.file().readBackground(22); // display screen MAP_3w - _vm.screen().displayBackground(); + _vm->_file->readBackground(22); // display screen MAP_3w + _vm->_screen->displayBackground(); introTicks = 0; - _vm.screen().loadFont(0); + _vm->_screen->loadFont(0); //#endif } +/** +* Hugo 3 - Preamble screen before going into game. Draws path of Hugo's plane. +* Called every tick. Returns TRUE when complete +*/ bool intro_v3w::introPlay() { - byte introSize = _vm.getIntroSize(); + byte introSize = _vm->getIntroSize(); -// Hugo 3 - Preamble screen before going into game. Draws path of Hugo's plane. -// Called every tick. Returns TRUE when complete //TODO : Add proper check of story mode //#if STORY if (introTicks < introSize) { // Scale viewport x_intro,y_intro to screen (offsetting y) - _vm.screen().writeStr(_vm._introX[introTicks], _vm._introY[introTicks] - DIBOFF_Y, "x", _TBRIGHTWHITE); - _vm.screen().displayBackground(); + _vm->_screen->writeStr(_vm->_introX[introTicks], _vm->_introY[introTicks] - DIBOFF_Y, "x", _TBRIGHTWHITE); + _vm->_screen->displayBackground(); // Text boxes at various times switch (introTicks) { case 4: - Utils::Box(BOX_OK, "%s", _vm._textIntro[kIntro1]); + Utils::Box(BOX_OK, "%s", _vm->_textIntro[kIntro1]); break; case 9: - Utils::Box(BOX_OK, "%s", _vm._textIntro[kIntro2]); + Utils::Box(BOX_OK, "%s", _vm->_textIntro[kIntro2]); break; case 35: - Utils::Box(BOX_OK, "%s", _vm._textIntro[kIntro3]); + Utils::Box(BOX_OK, "%s", _vm->_textIntro[kIntro3]); break; } } |