diff options
Diffstat (limited to 'engines/hopkins/script.cpp')
-rw-r--r-- | engines/hopkins/script.cpp | 1808 |
1 files changed, 904 insertions, 904 deletions
diff --git a/engines/hopkins/script.cpp b/engines/hopkins/script.cpp index 04f22498b0..c8dc0ebd5d 100644 --- a/engines/hopkins/script.cpp +++ b/engines/hopkins/script.cpp @@ -122,69 +122,69 @@ int ScriptManager::handleOpcode(byte *dataP) { if (mesgId == 363) mesgId = 636; } - if (!_vm->_soundManager->_soundOffFl && _vm->_soundManager->_soundFl) { + if (!_vm->_soundMan->_soundOffFl && _vm->_soundMan->_soundFl) { do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_soundManager->_soundFl); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_soundMan->_soundFl); } bool displayedTxtFl = false; - if (!_vm->_soundManager->_textOffFl) { + if (!_vm->_soundMan->_textOffFl) { int textPosX = READ_LE_INT16(dataP + 9); int textPosY = READ_LE_INT16(dataP + 11); - _vm->_fontManager->initTextBuffers(9, mesgId, _vm->_globals->_textFilename, 2 * textPosX, 2 * textPosY + 40, 6, dataP[7], 253); - _vm->_fontManager->showText(9); + _vm->_fontMan->initTextBuffers(9, mesgId, _vm->_globals->_textFilename, 2 * textPosX, 2 * textPosY + 40, 6, dataP[7], 253); + _vm->_fontMan->showText(9); displayedTxtFl = true; } - if (!_vm->_soundManager->_voiceOffFl) - _vm->_soundManager->mixVoice(mesgId, 4, displayedTxtFl); + if (!_vm->_soundMan->_voiceOffFl) + _vm->_soundMan->mixVoice(mesgId, 4, displayedTxtFl); } else { // if (_tempObjectFl) if (_vm->_globals->_saveData->_data[svField356]) { - _vm->_fontManager->initTextBuffers(9, 635, _vm->_globals->_textFilename, 55, 20, dataP[8], 35, 253); + _vm->_fontMan->initTextBuffers(9, 635, _vm->_globals->_textFilename, 55, 20, dataP[8], 35, 253); bool displayedTxtFl = false; - if (!_vm->_soundManager->_textOffFl) { - _vm->_fontManager->showText(9); + if (!_vm->_soundMan->_textOffFl) { + _vm->_fontMan->showText(9); displayedTxtFl = true; } - if (!_vm->_soundManager->_voiceOffFl) - _vm->_soundManager->mixVoice(635, 4, displayedTxtFl); + if (!_vm->_soundMan->_voiceOffFl) + _vm->_soundMan->mixVoice(635, 4, displayedTxtFl); } else { int textPosX = READ_LE_INT16(dataP + 9); - if (_vm->_globals->_language == LANG_FR && !_vm->_soundManager->_textOffFl) - _vm->_fontManager->initTextBuffers(9, mesgId, "OBJET1.TXT", 2 * textPosX, 60, 6, dataP[7], 253); - else if (_vm->_globals->_language == LANG_EN && !_vm->_soundManager->_textOffFl) - _vm->_fontManager->initTextBuffers(9, mesgId, "OBJETAN.TXT", 2 * textPosX, 60, 6, dataP[7], 253); - else if (_vm->_globals->_language == LANG_SP && !_vm->_soundManager->_textOffFl) { - _vm->_fontManager->initTextBuffers(9, mesgId, "OBJETES.TXT", 2 * textPosX, 60, 6, dataP[7], 253); + if (_vm->_globals->_language == LANG_FR && !_vm->_soundMan->_textOffFl) + _vm->_fontMan->initTextBuffers(9, mesgId, "OBJET1.TXT", 2 * textPosX, 60, 6, dataP[7], 253); + else if (_vm->_globals->_language == LANG_EN && !_vm->_soundMan->_textOffFl) + _vm->_fontMan->initTextBuffers(9, mesgId, "OBJETAN.TXT", 2 * textPosX, 60, 6, dataP[7], 253); + else if (_vm->_globals->_language == LANG_SP && !_vm->_soundMan->_textOffFl) { + _vm->_fontMan->initTextBuffers(9, mesgId, "OBJETES.TXT", 2 * textPosX, 60, 6, dataP[7], 253); } bool displayedTxtFl = false; - if (!_vm->_soundManager->_textOffFl) { - _vm->_fontManager->showText(9); + if (!_vm->_soundMan->_textOffFl) { + _vm->_fontMan->showText(9); displayedTxtFl = true; } - if (!_vm->_soundManager->_voiceOffFl) - _vm->_soundManager->mixVoice(mesgId, 5, displayedTxtFl); + if (!_vm->_soundMan->_voiceOffFl) + _vm->_soundMan->mixVoice(mesgId, 5, displayedTxtFl); } } break; } case MKTAG24('B', 'O', 'B'): - if (!_vm->_objectsManager->_disableFl) { + if (!_vm->_objectsMan->_disableFl) { int vbobIdx = dataP[5]; vbobFrameIndex = dataP[6]; int moveChange = dataP[7]; int vbobPosX = READ_LE_INT16(dataP + 8); int vbobPosY = READ_LE_INT16(dataP + 10); if (vbobIdx == 52) { - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, vbobPosX, READ_LE_INT16(dataP + 10), vbobFrameIndex); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, vbobPosX, READ_LE_INT16(dataP + 10), vbobFrameIndex); } else if (vbobIdx == 51) { - _vm->_objectsManager->quickDisplayBobSprite(vbobFrameIndex); + _vm->_objectsMan->quickDisplayBobSprite(vbobFrameIndex); } else if (vbobIdx != 50) { - _vm->_objectsManager->initVbob(_vm->_globals->_levelSpriteBuf, vbobIdx, vbobPosX, vbobPosY, vbobFrameIndex); + _vm->_objectsMan->initVbob(_vm->_globals->_levelSpriteBuf, vbobIdx, vbobPosX, vbobPosY, vbobFrameIndex); if (moveChange) moveChange /= _vm->_globals->_speed; if (moveChange > 1) { @@ -193,7 +193,7 @@ int ScriptManager::handleOpcode(byte *dataP) { return -1; // Exiting game --moveChange; - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); } while (moveChange); } } @@ -201,36 +201,36 @@ int ScriptManager::handleOpcode(byte *dataP) { opcodeType = 1; break; case MKTAG24('S', 'T', 'P'): - if (!_vm->_objectsManager->_disableFl) { - _vm->_objectsManager->_twoCharactersFl = false; - _vm->_objectsManager->_characterPos.x = READ_LE_INT16(dataP + 6); - _vm->_objectsManager->_characterPos.y = READ_LE_INT16(dataP + 8); - _vm->_objectsManager->_startSpriteIndex = dataP[5]; - if (_vm->_objectsManager->_changeHeadFl) { + if (!_vm->_objectsMan->_disableFl) { + _vm->_objectsMan->_twoCharactersFl = false; + _vm->_objectsMan->_characterPos.x = READ_LE_INT16(dataP + 6); + _vm->_objectsMan->_characterPos.y = READ_LE_INT16(dataP + 8); + _vm->_objectsMan->_startSpriteIndex = dataP[5]; + if (_vm->_objectsMan->_changeHeadFl) { if (_vm->_globals->_saveData->_data[svField354] == 1 && _vm->_globals->_saveData->_cloneHopkins._pos.x && _vm->_globals->_saveData->_cloneHopkins._pos.y && _vm->_globals->_saveData->_cloneHopkins._startSpriteIndex && _vm->_globals->_saveData->_cloneHopkins._location) { - _vm->_objectsManager->_characterPos = _vm->_globals->_saveData->_cloneHopkins._pos; - _vm->_objectsManager->_startSpriteIndex = _vm->_globals->_saveData->_cloneHopkins._startSpriteIndex; + _vm->_objectsMan->_characterPos = _vm->_globals->_saveData->_cloneHopkins._pos; + _vm->_objectsMan->_startSpriteIndex = _vm->_globals->_saveData->_cloneHopkins._startSpriteIndex; } if (_vm->_globals->_saveData->_data[svField356] == 1 && _vm->_globals->_saveData->_samantha._pos.x && _vm->_globals->_saveData->_samantha._pos.y && _vm->_globals->_saveData->_samantha._startSpriteIndex && _vm->_globals->_saveData->_samantha._location) { - _vm->_objectsManager->_characterPos = _vm->_globals->_saveData->_samantha._pos; - _vm->_objectsManager->_startSpriteIndex = _vm->_globals->_saveData->_samantha._startSpriteIndex; + _vm->_objectsMan->_characterPos = _vm->_globals->_saveData->_samantha._pos; + _vm->_objectsMan->_startSpriteIndex = _vm->_globals->_saveData->_samantha._startSpriteIndex; } if (_vm->_globals->_saveData->_data[svField357] == 1 && _vm->_globals->_saveData->_realHopkins._pos.x && _vm->_globals->_saveData->_realHopkins._pos.y && _vm->_globals->_saveData->_realHopkins._startSpriteIndex && _vm->_globals->_saveData->_realHopkins._location) { - _vm->_objectsManager->_characterPos = _vm->_globals->_saveData->_realHopkins._pos; - _vm->_objectsManager->_startSpriteIndex = _vm->_globals->_saveData->_realHopkins._startSpriteIndex; + _vm->_objectsMan->_characterPos = _vm->_globals->_saveData->_realHopkins._pos; + _vm->_objectsMan->_startSpriteIndex = _vm->_globals->_saveData->_realHopkins._startSpriteIndex; } } if (_vm->_globals->_saveData->_data[svField356] == 1 && _vm->_globals->_saveData->_realHopkins._location == _vm->_globals->_screenId) { - _vm->_objectsManager->addStaticSprite( - _vm->_objectsManager->_headSprites, + _vm->_objectsMan->addStaticSprite( + _vm->_objectsMan->_headSprites, _vm->_globals->_saveData->_realHopkins._pos, 1, 2, @@ -238,14 +238,14 @@ int ScriptManager::handleOpcode(byte *dataP) { false, 34, 190); - _vm->_objectsManager->animateSprite(1); - _vm->_objectsManager->_twoCharactersFl = true; + _vm->_objectsMan->animateSprite(1); + _vm->_objectsMan->_twoCharactersFl = true; } if (_vm->_globals->_saveData->_data[svField357] == 1 && _vm->_globals->_saveData->_data[svField355] == 1 && _vm->_globals->_saveData->_samantha._location == _vm->_globals->_screenId) { - _vm->_objectsManager->addStaticSprite( - _vm->_objectsManager->_headSprites, + _vm->_objectsMan->addStaticSprite( + _vm->_objectsMan->_headSprites, _vm->_globals->_saveData->_samantha._pos, 1, 3, @@ -253,15 +253,15 @@ int ScriptManager::handleOpcode(byte *dataP) { false, 20, 127); - _vm->_objectsManager->animateSprite(1); - _vm->_objectsManager->_twoCharactersFl = true; + _vm->_objectsMan->animateSprite(1); + _vm->_objectsMan->_twoCharactersFl = true; } } opcodeType = 1; - _vm->_objectsManager->_changeHeadFl = false; + _vm->_objectsMan->_changeHeadFl = false; break; case MKTAG24('S', 'T', 'E'): - if (!_vm->_objectsManager->_disableFl) { + if (!_vm->_objectsMan->_disableFl) { _vm->_globals->_prevScreenId = _vm->_globals->_screenId; _vm->_globals->_saveData->_data[svLastPrevScreenId] = _vm->_globals->_screenId; _vm->_globals->_screenId = _vm->_globals->_saveData->_data[svLastScreenId] = dataP[5]; @@ -270,8 +270,8 @@ int ScriptManager::handleOpcode(byte *dataP) { opcodeType = 1; break; case MKTAG24('B', 'O', 'F'): - if (!_vm->_objectsManager->_disableFl) - _vm->_objectsManager->disableVbob(READ_LE_INT16(dataP + 5)); + if (!_vm->_objectsMan->_disableFl) + _vm->_objectsMan->disableVbob(READ_LE_INT16(dataP + 5)); opcodeType = 1; break; case MKTAG24('P', 'E', 'R'): { @@ -283,172 +283,172 @@ int ScriptManager::handleOpcode(byte *dataP) { case 1: case 14: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(4); + _vm->_objectsMan->doActionBack(4); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(4); + _vm->_objectsMan->doActionRight(4); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(4); + _vm->_objectsMan->doActionDiagRight(4); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(4); + _vm->_objectsMan->doActionFront(4); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(4); + _vm->_objectsMan->doActionDiagLeft(4); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(4); + _vm->_objectsMan->doActionLeft(4); break; case 2: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(7); + _vm->_objectsMan->doActionBack(7); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(7); + _vm->_objectsMan->doActionRight(7); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(7); + _vm->_objectsMan->doActionDiagRight(7); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(7); + _vm->_objectsMan->doActionFront(7); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(7); + _vm->_objectsMan->doActionDiagLeft(7); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(7); + _vm->_objectsMan->doActionLeft(7); if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(8); + _vm->_objectsMan->doActionBack(8); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(8); + _vm->_objectsMan->doActionRight(8); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(8); + _vm->_objectsMan->doActionDiagRight(8); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(8); + _vm->_objectsMan->doActionFront(8); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(8); + _vm->_objectsMan->doActionDiagLeft(8); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(8); + _vm->_objectsMan->doActionLeft(8); break; case 19: case 4: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(1); + _vm->_objectsMan->doActionBack(1); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(1); + _vm->_objectsMan->doActionRight(1); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(1); + _vm->_objectsMan->doActionDiagRight(1); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(1); + _vm->_objectsMan->doActionFront(1); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(1); + _vm->_objectsMan->doActionDiagLeft(1); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(1); + _vm->_objectsMan->doActionLeft(1); break; case 5: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(5); + _vm->_objectsMan->doActionBack(5); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(5); + _vm->_objectsMan->doActionRight(5); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(5); + _vm->_objectsMan->doActionDiagRight(5); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(5); + _vm->_objectsMan->doActionFront(5); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(5); + _vm->_objectsMan->doActionDiagLeft(5); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(5); + _vm->_objectsMan->doActionLeft(5); if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(6); + _vm->_objectsMan->doActionBack(6); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(6); + _vm->_objectsMan->doActionRight(6); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(6); + _vm->_objectsMan->doActionDiagRight(6); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(6); + _vm->_objectsMan->doActionFront(6); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(6); + _vm->_objectsMan->doActionDiagLeft(6); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(6); + _vm->_objectsMan->doActionLeft(6); break; case 17: case 7: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(2); + _vm->_objectsMan->doActionBack(2); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(2); + _vm->_objectsMan->doActionRight(2); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(2); + _vm->_objectsMan->doActionDiagRight(2); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(2); + _vm->_objectsMan->doActionFront(2); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(2); + _vm->_objectsMan->doActionDiagLeft(2); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(2); + _vm->_objectsMan->doActionLeft(2); break; case 18: case 8: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(3); + _vm->_objectsMan->doActionBack(3); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(3); + _vm->_objectsMan->doActionRight(3); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(3); + _vm->_objectsMan->doActionDiagRight(3); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(3); + _vm->_objectsMan->doActionFront(3); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(3); + _vm->_objectsMan->doActionDiagLeft(3); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(3); + _vm->_objectsMan->doActionLeft(3); break; case 9: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(5); + _vm->_objectsMan->doActionBack(5); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(5); + _vm->_objectsMan->doActionRight(5); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(5); + _vm->_objectsMan->doActionDiagRight(5); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(5); + _vm->_objectsMan->doActionFront(5); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(5); + _vm->_objectsMan->doActionDiagLeft(5); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(5); + _vm->_objectsMan->doActionLeft(5); break; case 10: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(6); + _vm->_objectsMan->doActionBack(6); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(6); + _vm->_objectsMan->doActionRight(6); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(6); + _vm->_objectsMan->doActionDiagRight(6); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(6); + _vm->_objectsMan->doActionFront(6); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(6); + _vm->_objectsMan->doActionDiagLeft(6); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(6); + _vm->_objectsMan->doActionLeft(6); break; case 15: case 11: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(7); + _vm->_objectsMan->doActionBack(7); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(7); + _vm->_objectsMan->doActionRight(7); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(7); + _vm->_objectsMan->doActionDiagRight(7); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(7); + _vm->_objectsMan->doActionFront(7); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(7); + _vm->_objectsMan->doActionDiagLeft(7); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(7); + _vm->_objectsMan->doActionLeft(7); break; case 16: case 12: if (_vm->_globals->_actionDirection == DIR_UP) - _vm->_objectsManager->doActionBack(8); + _vm->_objectsMan->doActionBack(8); if (_vm->_globals->_actionDirection == DIR_RIGHT) - _vm->_objectsManager->doActionRight(8); + _vm->_objectsMan->doActionRight(8); if (_vm->_globals->_actionDirection == DIR_UP_RIGHT) - _vm->_objectsManager->doActionDiagRight(8); + _vm->_objectsMan->doActionDiagRight(8); if (_vm->_globals->_actionDirection == DIR_DOWN) - _vm->_objectsManager->doActionFront(8); + _vm->_objectsMan->doActionFront(8); if (_vm->_globals->_actionDirection == DIR_UP_LEFT) - _vm->_objectsManager->doActionDiagLeft(8); + _vm->_objectsMan->doActionDiagLeft(8); if (_vm->_globals->_actionDirection == DIR_LEFT) - _vm->_objectsManager->doActionLeft(8); + _vm->_objectsMan->doActionLeft(8); break; } } @@ -466,28 +466,28 @@ int ScriptManager::handleOpcode(byte *dataP) { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); } opcodeType = 1; break; } case MKTAG24('O', 'B', 'P'): opcodeType = 1; - _vm->_objectsManager->addObject(READ_LE_INT16(dataP + 5)); + _vm->_objectsMan->addObject(READ_LE_INT16(dataP + 5)); break; case MKTAG24('O', 'B', 'M'): opcodeType = 1; - _vm->_objectsManager->removeObject(READ_LE_INT16(dataP + 5)); + _vm->_objectsMan->removeObject(READ_LE_INT16(dataP + 5)); break; case MKTAG24('G', 'O', 'T'): opcodeType = 2; break; case MKTAG24('Z', 'O', 'N'): - _vm->_linesManager->enableZone(READ_LE_INT16(dataP + 5)); + _vm->_linesMan->enableZone(READ_LE_INT16(dataP + 5)); opcodeType = 1; break; case MKTAG24('Z', 'O', 'F'): - _vm->_linesManager->disableZone(READ_LE_INT16(dataP + 5)); + _vm->_linesMan->disableZone(READ_LE_INT16(dataP + 5)); opcodeType = 1; break; case MKTAG24('E', 'X', 'I'): @@ -498,192 +498,192 @@ int ScriptManager::handleOpcode(byte *dataP) { opcodeType = 5; break; case MKTAG24('B', 'C', 'A'): - _vm->_objectsManager->disableHidingItem(READ_LE_INT16(dataP + 5)); + _vm->_objectsMan->disableHidingItem(READ_LE_INT16(dataP + 5)); opcodeType = 1; break; case MKTAG24('A', 'N', 'I'): { int animId = READ_LE_INT16(dataP + 5); if (animId <= 100) - _vm->_objectsManager->setBobAnimation(animId); + _vm->_objectsMan->setBobAnimation(animId); else - _vm->_objectsManager->stopBobAnimation(animId - 100); + _vm->_objectsMan->stopBobAnimation(animId - 100); opcodeType = 1; break; } case MKTAG24('S', 'P', 'E'): switch (READ_LE_INT16(dataP + 5)) { case 6: - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setAndPlayAnim(20, 0, 14, true); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setAndPlayAnim(20, 0, 14, true); break; case 7: - _vm->_talkManager->startAnimatedCharacterDialogue("rueh1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("rueh1.pe2"); break; case 8: - _vm->_talkManager->startAnimatedCharacterDialogue("ruef1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("ruef1.pe2"); break; case 10: - _vm->_talkManager->startAnimatedCharacterDialogue("bqeflic1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("bqeflic1.pe2"); break; case 11: - _vm->_talkManager->startAnimatedCharacterDialogue("bqeflic2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("bqeflic2.pe2"); break; case 12: - _vm->_fontManager->hideText(9); - _vm->_eventsManager->refreshScreenAndEvents(); - _vm->_eventsManager->refreshScreenAndEvents(); - _vm->_talkManager->startAnimatedCharacterDialogue("bqetueur.pe2"); + _vm->_fontMan->hideText(9); + _vm->_events->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); + _vm->_talkMan->startAnimatedCharacterDialogue("bqetueur.pe2"); break; case 13: - _vm->_eventsManager->_mouseButton = _vm->_eventsManager->_curMouseButton; + _vm->_events->_mouseButton = _vm->_events->_curMouseButton; _vm->_globals->_disableInventFl = true; - _vm->_graphicsManager->fadeOutLong(); - _vm->_objectsManager->disableHidingBehavior(); - _vm->_objectsManager->removeSprite(0); - _vm->_fontManager->hideText(5); - _vm->_fontManager->hideText(9); - _vm->_graphicsManager->endDisplayBob(); - _vm->_objectsManager->clearScreen(); + _vm->_graphicsMan->fadeOutLong(); + _vm->_objectsMan->disableHidingBehavior(); + _vm->_objectsMan->removeSprite(0); + _vm->_fontMan->hideText(5); + _vm->_fontMan->hideText(9); + _vm->_graphicsMan->endDisplayBob(); + _vm->_objectsMan->clearScreen(); if ((_vm->getPlatform() == Common::kPlatformWindows) && _vm->getIsDemo()) { - _vm->_graphicsManager->fadeOutLong(); + _vm->_graphicsMan->fadeOutLong(); } else { - _vm->_soundManager->playSoundFile("SOUND17.WAV"); - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playSequence2("HELICO.SEQ", 10, 4, 10); + _vm->_soundMan->playSoundFile("SOUND17.WAV"); + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playSequence2("HELICO.SEQ", 10, 4, 10); } - _vm->_animationManager->loadAnim("otage"); - _vm->_graphicsManager->loadImage("IM05"); - _vm->_graphicsManager->displayAllBob(); + _vm->_animMan->loadAnim("otage"); + _vm->_graphicsMan->loadImage("IM05"); + _vm->_graphicsMan->displayAllBob(); for (int i = 0; i <= 4; i++) { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); } - _vm->_eventsManager->mouseOff(); - _vm->_graphicsManager->fadeInDefaultLength(_vm->_graphicsManager->_frontBuffer); + _vm->_events->mouseOff(); + _vm->_graphicsMan->fadeInDefaultLength(_vm->_graphicsMan->_frontBuffer); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(3) != 100); - _vm->_graphicsManager->fadeOutDefaultLength(_vm->_graphicsManager->_frontBuffer); - _vm->_graphicsManager->endDisplayBob(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(3) != 100); + _vm->_graphicsMan->fadeOutDefaultLength(_vm->_graphicsMan->_frontBuffer); + _vm->_graphicsMan->endDisplayBob(); // If uncensored, rip the throat of the hostage if (!_vm->_globals->_censorshipFl) { - _vm->_soundManager->_specialSoundNum = 16; - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playAnim("EGORGE.ANM", 50, 28, 500); - _vm->_soundManager->_specialSoundNum = 0; + _vm->_soundMan->_specialSoundNum = 16; + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playAnim("EGORGE.ANM", 50, 28, 500); + _vm->_soundMan->_specialSoundNum = 0; } - _vm->_animationManager->loadAnim("ASCEN"); - _vm->_eventsManager->mouseOff(); - _vm->_graphicsManager->loadImage("ASCEN"); - _vm->_graphicsManager->displayAllBob(); + _vm->_animMan->loadAnim("ASCEN"); + _vm->_events->mouseOff(); + _vm->_graphicsMan->loadImage("ASCEN"); + _vm->_graphicsMan->displayAllBob(); for (int i = 0; i <= 4; i++) { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); } - _vm->_eventsManager->mouseOff(); - _vm->_graphicsManager->fadeInDefaultLength(_vm->_graphicsManager->_frontBuffer); - _vm->_objectsManager->checkEventBobAnim(1, 0, 17, 3); - _vm->_graphicsManager->fadeOutDefaultLength(_vm->_graphicsManager->_frontBuffer); - _vm->_graphicsManager->endDisplayBob(); + _vm->_events->mouseOff(); + _vm->_graphicsMan->fadeInDefaultLength(_vm->_graphicsMan->_frontBuffer); + _vm->_objectsMan->checkEventBobAnim(1, 0, 17, 3); + _vm->_graphicsMan->fadeOutDefaultLength(_vm->_graphicsMan->_frontBuffer); + _vm->_graphicsMan->endDisplayBob(); if ((_vm->getPlatform() == Common::kPlatformWindows) && _vm->getIsDemo()) - _vm->_soundManager->playSoundFile("SOUND17.WAV"); + _vm->_soundMan->playSoundFile("SOUND17.WAV"); - _vm->_soundManager->_specialSoundNum = 14; - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playSequence2("ASSOM.SEQ", 10, 4, 500); - _vm->_soundManager->_specialSoundNum = 0; + _vm->_soundMan->_specialSoundNum = 14; + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playSequence2("ASSOM.SEQ", 10, 4, 500); + _vm->_soundMan->_specialSoundNum = 0; if ((_vm->getPlatform() == Common::kPlatformWindows) && _vm->getIsDemo()) - _vm->_graphicsManager->fadeOutLong(); + _vm->_graphicsMan->fadeOutLong(); _vm->_globals->_disableInventFl = false; - _vm->_objectsManager->_helicopterFl = true; + _vm->_objectsMan->_helicopterFl = true; break; case 16: - _vm->_talkManager->startAnimatedCharacterDialogue("ftoubib.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("ftoubib.pe2"); break; case 17: - _vm->_talkManager->startAnimatedCharacterDialogue("flic2b.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("flic2b.pe2"); break; case 18: - _vm->_talkManager->startAnimatedCharacterDialogue("fjour.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("fjour.pe2"); break; case 20: - _vm->_talkManager->startAnimatedCharacterDialogue("PUNK.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("PUNK.pe2"); break; case 21: - _vm->_talkManager->startAnimatedCharacterDialogue("MEDLEG.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("MEDLEG.pe2"); break; case 22: - _vm->_talkManager->animateObject("CADAVRE1.pe2"); + _vm->_talkMan->animateObject("CADAVRE1.pe2"); break; case 23: - _vm->_talkManager->startStaticCharacterDialogue("CHERCHE1.pe2"); + _vm->_talkMan->startStaticCharacterDialogue("CHERCHE1.pe2"); break; case 25: - _vm->_talkManager->startAnimatedCharacterDialogue("AGENT1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("AGENT1.pe2"); break; case 26: - _vm->_talkManager->startAnimatedCharacterDialogue("AGENT2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("AGENT2.pe2"); break; case 27: if (_vm->_globals->_saveData->_data[svField94] != 1 || _vm->_globals->_saveData->_data[svField95] != 1) - _vm->_talkManager->startAnimatedCharacterDialogue("STANDAR.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("STANDAR.pe2"); else - _vm->_talkManager->startAnimatedCharacterDialogue("STANDAR1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("STANDAR1.pe2"); break; case 29: _vm->_globals->_disableInventFl = true; - _vm->_talkManager->animateObject("TELEP.pe2"); + _vm->_talkMan->animateObject("TELEP.pe2"); _vm->_globals->_disableInventFl = false; break; case 32: - _vm->_talkManager->startAnimatedCharacterDialogue("SAMAN.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("SAMAN.pe2"); break; case 35: - if (!_vm->_soundManager->_soundOffFl) { + if (!_vm->_soundMan->_soundOffFl) { do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_soundManager->_soundFl); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_soundMan->_soundFl); } - _vm->_talkManager->startAnimatedCharacterDialogue("PTLAB.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("PTLAB.pe2"); break; case 36: @@ -692,20 +692,20 @@ int ScriptManager::handleOpcode(byte *dataP) { switch (_vm->_globals->_saveData->_data[svField270]) { case 0: - _vm->_talkManager->startStaticCharacterDialogue("PATRON0.pe2"); + _vm->_talkMan->startStaticCharacterDialogue("PATRON0.pe2"); break; case 1: - _vm->_talkManager->startStaticCharacterDialogue("PATRON1.pe2"); + _vm->_talkMan->startStaticCharacterDialogue("PATRON1.pe2"); break; case 2: - _vm->_talkManager->startStaticCharacterDialogue("PATRON2.pe2"); + _vm->_talkMan->startStaticCharacterDialogue("PATRON2.pe2"); break; case 3: - _vm->_talkManager->startStaticCharacterDialogue("PATRON3.pe2"); + _vm->_talkMan->startStaticCharacterDialogue("PATRON3.pe2"); break; default: if (_vm->_globals->_saveData->_data[svField270] > 3) { - _vm->_talkManager->startStaticCharacterDialogue("PATRON4.pe2"); + _vm->_talkMan->startStaticCharacterDialogue("PATRON4.pe2"); _vm->_globals->_saveData->_data[svField270] = 5; } break; @@ -713,78 +713,78 @@ int ScriptManager::handleOpcode(byte *dataP) { break; case 37: - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playSequence2("corde.SEQ", 32, 32, 100); - _vm->_graphicsManager->_noFadingFl = true; + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playSequence2("corde.SEQ", 32, 32, 100); + _vm->_graphicsMan->_noFadingFl = true; break; case 38: - _vm->_soundManager->loadSample(1, "SOUND44.WAV"); - _vm->_soundManager->loadSample(2, "SOUND42.WAV"); - _vm->_soundManager->loadSample(3, "SOUND41.WAV"); - _vm->_soundManager->_specialSoundNum = 17; - _vm->_animationManager->playSequence("grenade.SEQ", 1, 32, 100, false, false); - _vm->_soundManager->_specialSoundNum = 0; - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playAnim("CREVE17.ANM", 24, 24, 200); - _vm->_soundManager->removeSample(1); - _vm->_soundManager->removeSample(2); - _vm->_soundManager->removeSample(3); - _vm->_graphicsManager->_noFadingFl = true; + _vm->_soundMan->loadSample(1, "SOUND44.WAV"); + _vm->_soundMan->loadSample(2, "SOUND42.WAV"); + _vm->_soundMan->loadSample(3, "SOUND41.WAV"); + _vm->_soundMan->_specialSoundNum = 17; + _vm->_animMan->playSequence("grenade.SEQ", 1, 32, 100, false, false); + _vm->_soundMan->_specialSoundNum = 0; + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playAnim("CREVE17.ANM", 24, 24, 200); + _vm->_soundMan->removeSample(1); + _vm->_soundMan->removeSample(2); + _vm->_soundMan->removeSample(3); + _vm->_graphicsMan->_noFadingFl = true; break; case 40: - _vm->_talkManager->startAnimatedCharacterDialogue("MAGE.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("MAGE.pe2"); break; case 41: - _vm->_talkManager->startAnimatedCharacterDialogue("MORT3.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("MORT3.pe2"); break; case 42: - _vm->_talkManager->startAnimatedCharacterDialogue("MORT2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("MORT2.pe2"); break; case 43: - _vm->_talkManager->startAnimatedCharacterDialogue("MORT1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("MORT1.pe2"); break; case 44: - _vm->_talkManager->startAnimatedCharacterDialogue("MORT3A.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("MORT3A.pe2"); break; case 45: - _vm->_talkManager->startAnimatedCharacterDialogue("FEM3.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("FEM3.pe2"); break; case 46: { _vm->_globals->_checkDistanceFl = true; - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 564, 420); - _vm->_objectsManager->_zoneNum = -1; + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 564, 420); + _vm->_objectsMan->_zoneNum = -1; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->removeSprite(0); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->removeSprite(0); _vm->_globals->_checkDistanceFl = true; - _vm->_soundManager->loadSample(1, "SOUND44.WAV"); - _vm->_soundManager->loadSample(2, "SOUND45.WAV"); - _vm->_objectsManager->setMultiBobAnim(9, 10, 0, 0); + _vm->_soundMan->loadSample(1, "SOUND44.WAV"); + _vm->_soundMan->loadSample(2, "SOUND45.WAV"); + _vm->_objectsMan->setMultiBobAnim(9, 10, 0, 0); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(9)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(9)) { case 4: case 16: case 28: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -795,12 +795,12 @@ int ScriptManager::handleOpcode(byte *dataP) { break; } - switch (_vm->_objectsManager->getBobAnimDataIdx(10)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(10)) { case 10: case 22: case 33: if (!playFl) { - _vm->_soundManager->playSample(2); + _vm->_soundMan->playSample(2); playFl = true; } break; @@ -808,41 +808,41 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; case 12: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 249, 1); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 249, 1); break; case 23: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 249, 2); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 249, 2); playFl = false; break; case 34: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 249, 3); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 249, 3); playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(9) == 36) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(9) == 36) break; } - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->stopBobAnimation(9); - _vm->_objectsManager->stopBobAnimation(10); - _vm->_soundManager->removeSample(1); - _vm->_soundManager->removeSample(2); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->stopBobAnimation(9); + _vm->_objectsMan->stopBobAnimation(10); + _vm->_soundMan->removeSample(1); + _vm->_soundMan->removeSample(2); break; } case 47: - _vm->_talkManager->startAnimatedCharacterDialogue("BARMAN.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("BARMAN.pe2"); break; case 48: - _vm->_talkManager->startAnimatedCharacterDialogue("SAMAN2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("SAMAN2.pe2"); break; case 49: { - _vm->_objectsManager->disableHidingBehavior(); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setMultiBobAnim(9, 10, 0, 0); + _vm->_objectsMan->disableHidingBehavior(); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setMultiBobAnim(9, 10, 0, 0); int endIdx; if (_vm->_globals->_saveData->_data[svField133] == 1) @@ -854,11 +854,11 @@ int ScriptManager::handleOpcode(byte *dataP) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(9)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(9)) { case 4: case 18: if (!playFl) { - _vm->_soundManager->directPlayWav("SOUND44.WAV"); + _vm->_soundMan->directPlayWav("SOUND44.WAV"); playFl = true; } break; @@ -868,10 +868,10 @@ int ScriptManager::handleOpcode(byte *dataP) { break; } - switch (_vm->_objectsManager->getBobAnimDataIdx(10)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(10)) { case 11: if (!playFl) { - _vm->_soundManager->directPlayWav("SOUND45.WAV"); + _vm->_soundMan->directPlayWav("SOUND45.WAV"); playFl = true; } break; @@ -879,101 +879,101 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(9) == endIdx) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(9) == endIdx) break; } if (endIdx == 12) { - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->stopBobAnimation(9); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->stopBobAnimation(9); } - _vm->_objectsManager->enableHidingBehavior(); + _vm->_objectsMan->enableHidingBehavior(); break; } case 50: - _vm->_soundManager->playSoundFile("SOUND46.WAv"); - _vm->_objectsManager->setAndPlayAnim(11, 0, 23, false); + _vm->_soundMan->playSoundFile("SOUND46.WAv"); + _vm->_objectsMan->setAndPlayAnim(11, 0, 23, false); break; case 51: { - _vm->_graphicsManager->fadeOutLong(); - _vm->_objectsManager->disableHidingBehavior(); - _vm->_objectsManager->removeSprite(0); - _vm->_fontManager->hideText(5); - _vm->_fontManager->hideText(9); - _vm->_graphicsManager->endDisplayBob(); - _vm->_graphicsManager->loadImage("IM20f"); - _vm->_animationManager->loadAnim("ANIM20f"); - _vm->_graphicsManager->displayAllBob(); - _vm->_eventsManager->mouseOff(); - _vm->_graphicsManager->fadeInLong(); - _vm->_soundManager->loadWav("SOUND46.WAV", 1); + _vm->_graphicsMan->fadeOutLong(); + _vm->_objectsMan->disableHidingBehavior(); + _vm->_objectsMan->removeSprite(0); + _vm->_fontMan->hideText(5); + _vm->_fontMan->hideText(9); + _vm->_graphicsMan->endDisplayBob(); + _vm->_graphicsMan->loadImage("IM20f"); + _vm->_animMan->loadAnim("ANIM20f"); + _vm->_graphicsMan->displayAllBob(); + _vm->_events->mouseOff(); + _vm->_graphicsMan->fadeInLong(); + _vm->_soundMan->loadWav("SOUND46.WAV", 1); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - if (_vm->_objectsManager->getBobAnimDataIdx(12) == 5 && !playFl) { - _vm->_soundManager->playWav(1); + if (_vm->_objectsMan->getBobAnimDataIdx(12) == 5 && !playFl) { + _vm->_soundMan->playWav(1); playFl = true; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(12) == 34) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(12) == 34) break; } - _vm->_objectsManager->stopBobAnimation(2); - _vm->_graphicsManager->fadeOutLong(); - _vm->_graphicsManager->_noFadingFl = true; + _vm->_objectsMan->stopBobAnimation(2); + _vm->_graphicsMan->fadeOutLong(); + _vm->_graphicsMan->_noFadingFl = true; _vm->_globals->_exitId = 20; break; } case 52: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("GARDE.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("GARDE.PE2"); _vm->_globals->_introSpeechOffFl = false; break; case 53: - _vm->_talkManager->startAnimatedCharacterDialogue("GARDE1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("GARDE1.pe2"); break; case 54: - _vm->_talkManager->startAnimatedCharacterDialogue("GARDE2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("GARDE2.pe2"); break; case 55: - _vm->_objectsManager->stopBobAnimation(1); - _vm->_objectsManager->setAndPlayAnim(15, 0, 12, false); - _vm->_objectsManager->stopBobAnimation(15); - _vm->_objectsManager->loadLinkFile("IM19a", true); + _vm->_objectsMan->stopBobAnimation(1); + _vm->_objectsMan->setAndPlayAnim(15, 0, 12, false); + _vm->_objectsMan->stopBobAnimation(15); + _vm->_objectsMan->loadLinkFile("IM19a", true); break; case 56: - _vm->_globals->_characterSpriteBuf = _vm->_fileManager->loadFile("HOPFEM.SPR"); + _vm->_globals->_characterSpriteBuf = _vm->_fileIO->loadFile("HOPFEM.SPR"); _vm->_globals->_characterType = 1; _vm->_globals->_saveData->_data[svAlternateSpriteFl] = 1; _vm->_globals->loadCharacterData(); - _vm->_objectsManager->_sprite[0]._deltaX = 28; - _vm->_objectsManager->_sprite[0]._deltaY = 155; - _vm->_objectsManager->computeAndSetSpriteSize(); + _vm->_objectsMan->_sprite[0]._deltaX = 28; + _vm->_objectsMan->_sprite[0]._deltaY = 155; + _vm->_objectsMan->computeAndSetSpriteSize(); break; case 57: - _vm->_globals->_characterSpriteBuf = _vm->_fileManager->loadFile("PERSO.SPR"); + _vm->_globals->_characterSpriteBuf = _vm->_fileIO->loadFile("PERSO.SPR"); _vm->_globals->_characterType = 0; _vm->_globals->_saveData->_data[svAlternateSpriteFl] = 0; _vm->_globals->loadCharacterData(); - _vm->_objectsManager->_sprite[0]._deltaX = 34; - _vm->_objectsManager->_sprite[0]._deltaY = 190; - _vm->_objectsManager->computeAndSetSpriteSize(); + _vm->_objectsMan->_sprite[0]._deltaX = 34; + _vm->_objectsMan->_sprite[0]._deltaY = 190; + _vm->_objectsMan->computeAndSetSpriteSize(); break; case 58: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("Gm1.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("Gm1.PE2"); _vm->_globals->_saveData->_data[svField176] = 1; _vm->_globals->_saveData->_data[svField270] = 2; _vm->_globals->_introSpeechOffFl = false; @@ -981,33 +981,33 @@ int ScriptManager::handleOpcode(byte *dataP) { case 59: { _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); - _vm->_objectsManager->resetOldDirection(); - _vm->_objectsManager->resetHomeRateCounter(); - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 445, 332); + _vm->_objectsMan->_oldCharacterPosX = _vm->_objectsMan->getSpriteX(0); + _vm->_objectsMan->resetOldDirection(); + _vm->_objectsMan->resetHomeRateCounter(); + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 445, 332); _vm->_globals->_checkDistanceFl = true; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(7); - _vm->_objectsManager->setBobAnimDataIdx(7, 0); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(7); + _vm->_objectsMan->setBobAnimDataIdx(7, 0); bool playFl = false; - _vm->_soundManager->loadSample(1, "SOUND40.WAV"); + _vm->_soundMan->loadSample(1, "SOUND40.WAV"); for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(7)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(7)) { case 10: case 18: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -1015,48 +1015,48 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; case 19: - _vm->_objectsManager->setBobAnimation(3); + _vm->_objectsMan->setBobAnimation(3); playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(3) == 48) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(3) == 48) break; } - _vm->_soundManager->removeSample(1); - _vm->_objectsManager->setSpriteIndex(0, 62); - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->setBobAnimation(6); - _vm->_objectsManager->stopBobAnimation(7); - _vm->_objectsManager->stopBobAnimation(3); + _vm->_soundMan->removeSample(1); + _vm->_objectsMan->setSpriteIndex(0, 62); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->setBobAnimation(6); + _vm->_objectsMan->stopBobAnimation(7); + _vm->_objectsMan->stopBobAnimation(3); break; } case 62: - _vm->_talkManager->animateObject("SBCADA.pe2"); + _vm->_talkMan->animateObject("SBCADA.pe2"); break; case 65: - _vm->_talkManager->animateObject("ScCADA.pe2"); + _vm->_talkMan->animateObject("ScCADA.pe2"); break; case 80: { - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(12); - _vm->_objectsManager->setBobAnimation(13); - _vm->_objectsManager->setBobAnimDataIdx(12, 0); - _vm->_objectsManager->setBobAnimDataIdx(13, 0); - _vm->_soundManager->loadWav("SOUND44.WAV", 1); - _vm->_soundManager->loadWav("SOUND71.WAV", 2); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(12); + _vm->_objectsMan->setBobAnimation(13); + _vm->_objectsMan->setBobAnimDataIdx(12, 0); + _vm->_objectsMan->setBobAnimDataIdx(13, 0); + _vm->_soundMan->loadWav("SOUND44.WAV", 1); + _vm->_soundMan->loadWav("SOUND71.WAV", 2); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(12)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(12)) { case 4: if (!playFl) { - _vm->_soundManager->playWav(1); + _vm->_soundMan->playWav(1); playFl = true; } break; @@ -1065,10 +1065,10 @@ int ScriptManager::handleOpcode(byte *dataP) { break; } - switch (_vm->_objectsManager->getBobAnimDataIdx(4)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(4)) { case 5: if (!playFl) { - _vm->_soundManager->playWav(2); + _vm->_soundMan->playWav(2); playFl = true; } case 6: @@ -1076,57 +1076,57 @@ int ScriptManager::handleOpcode(byte *dataP) { break; } - if (_vm->_objectsManager->getBobAnimDataIdx(13) == 8) { - _vm->_objectsManager->stopBobAnimation(13); - _vm->_objectsManager->stopBobAnimation(3); - _vm->_objectsManager->setBobAnimation(4); - _vm->_objectsManager->setBobAnimDataIdx(4, 0); - _vm->_objectsManager->setBobAnimDataIdx(13, 0); + if (_vm->_objectsMan->getBobAnimDataIdx(13) == 8) { + _vm->_objectsMan->stopBobAnimation(13); + _vm->_objectsMan->stopBobAnimation(3); + _vm->_objectsMan->setBobAnimation(4); + _vm->_objectsMan->setBobAnimDataIdx(4, 0); + _vm->_objectsMan->setBobAnimDataIdx(13, 0); } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(4) == 16) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(4) == 16) break; } - _vm->_objectsManager->stopBobAnimation(12); - _vm->_objectsManager->stopBobAnimation(4); - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->loadLinkFile("IM27a", true); + _vm->_objectsMan->stopBobAnimation(12); + _vm->_objectsMan->stopBobAnimation(4); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->loadLinkFile("IM27a", true); break; } case 81: { _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); - _vm->_objectsManager->resetOldDirection(); - _vm->_objectsManager->resetHomeRateCounter(); - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 119, 268); + _vm->_objectsMan->_oldCharacterPosX = _vm->_objectsMan->getSpriteX(0); + _vm->_objectsMan->resetOldDirection(); + _vm->_objectsMan->resetHomeRateCounter(); + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 119, 268); _vm->_globals->_checkDistanceFl = true; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(11); - _vm->_objectsManager->setBobAnimation(8); - _vm->_objectsManager->setBobAnimDataIdx(11, 0); - _vm->_objectsManager->setBobAnimDataIdx(8, 0); - _vm->_soundManager->loadWav("SOUND44.WAV", 1); - _vm->_soundManager->loadWav("SOUND48.WAV", 2); - _vm->_soundManager->loadWav("SOUND49.WAV", 3); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(11); + _vm->_objectsMan->setBobAnimation(8); + _vm->_objectsMan->setBobAnimDataIdx(11, 0); + _vm->_objectsMan->setBobAnimDataIdx(8, 0); + _vm->_soundMan->loadWav("SOUND44.WAV", 1); + _vm->_soundMan->loadWav("SOUND48.WAV", 2); + _vm->_soundMan->loadWav("SOUND49.WAV", 3); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(11)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(11)) { case 4: if (!playFl) { - _vm->_soundManager->playWav(1); + _vm->_soundMan->playWav(1); playFl = true; } break; @@ -1135,10 +1135,10 @@ int ScriptManager::handleOpcode(byte *dataP) { break; } - switch (_vm->_objectsManager->getBobAnimDataIdx(8)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(8)) { case 11: if (!playFl) { - _vm->_soundManager->playWav(2); + _vm->_soundMan->playWav(2); playFl = true; } break; @@ -1147,93 +1147,93 @@ int ScriptManager::handleOpcode(byte *dataP) { break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(8) == 32) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(8) == 32) break; } - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 201, 14, 1); - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->stopBobAnimation(11); - _vm->_objectsManager->stopBobAnimation(8); - _vm->_objectsManager->setBobAnimation(5); - _vm->_objectsManager->setBobAnimation(6); - _vm->_objectsManager->setBobAnimDataIdx(5, 0); - _vm->_objectsManager->setBobAnimDataIdx(6, 0); - _vm->_soundManager->playWav(3); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 201, 14, 1); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->stopBobAnimation(11); + _vm->_objectsMan->stopBobAnimation(8); + _vm->_objectsMan->setBobAnimation(5); + _vm->_objectsMan->setBobAnimation(6); + _vm->_objectsMan->setBobAnimDataIdx(5, 0); + _vm->_objectsMan->setBobAnimDataIdx(6, 0); + _vm->_soundMan->playWav(3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(5) != 74); - _vm->_objectsManager->stopBobAnimation(5); - _vm->_objectsManager->stopBobAnimation(6); - _vm->_objectsManager->setBobAnimation(9); - _vm->_objectsManager->setBobAnimation(7); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(5) != 74); + _vm->_objectsMan->stopBobAnimation(5); + _vm->_objectsMan->stopBobAnimation(6); + _vm->_objectsMan->setBobAnimation(9); + _vm->_objectsMan->setBobAnimation(7); break; } case 83: - _vm->_talkManager->startAnimatedCharacterDialogue("CVIGIL.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("CVIGIL.pe2"); break; case 84: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("CVIGIL1.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("CVIGIL1.PE2"); _vm->_globals->_introSpeechOffFl = false; break; case 85: - _vm->_objectsManager->stopBobAnimation(3); - _vm->_objectsManager->setBobAnimation(5); - _vm->_objectsManager->setBobAnimDataIdx(5, 0); + _vm->_objectsMan->stopBobAnimation(3); + _vm->_objectsMan->setBobAnimation(5); + _vm->_objectsMan->setBobAnimDataIdx(5, 0); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(5) != 6); - _vm->_objectsManager->stopBobAnimation(5); - _vm->_objectsManager->setBobAnimation(6); - _vm->_objectsManager->loadLinkFile("IM24a", true); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(5) != 6); + _vm->_objectsMan->stopBobAnimation(5); + _vm->_objectsMan->setBobAnimation(6); + _vm->_objectsMan->loadLinkFile("IM24a", true); break; case 86: if (_vm->_globals->_saveData->_data[svField231] == 1) { - _vm->_talkManager->startAnimatedCharacterDialogue("chotess1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("chotess1.pe2"); } else { _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("chotesse.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("chotesse.pe2"); _vm->_globals->_introSpeechOffFl = false; } break; case 87: if (_vm->_globals->_saveData->_data[svField188]) - _vm->_talkManager->startAnimatedCharacterDialogue("stand2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("stand2.pe2"); else - _vm->_talkManager->startAnimatedCharacterDialogue("stand1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("stand1.pe2"); break; case 88: if (_vm->_globals->_saveData->_data[svField183] == 1) { - _vm->_objectsManager->setBobAnimDataIdx(1, 0); - _vm->_objectsManager->setBobAnimDataIdx(2, 0); - _vm->_objectsManager->setBobAnimation(1); - _vm->_objectsManager->setBobAnimation(2); - _vm->_soundManager->loadSample(1, "SOUND40.WAV"); + _vm->_objectsMan->setBobAnimDataIdx(1, 0); + _vm->_objectsMan->setBobAnimDataIdx(2, 0); + _vm->_objectsMan->setBobAnimation(1); + _vm->_objectsMan->setBobAnimation(2); + _vm->_soundMan->loadSample(1, "SOUND40.WAV"); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(1)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(1)) { case 1: case 3: case 5: case 7: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -1244,33 +1244,33 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(1) == 9) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(1) == 9) break; } - _vm->_objectsManager->stopBobAnimation(1); - _vm->_objectsManager->stopBobAnimation(2); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 160, 6); - _vm->_soundManager->removeSample(1); + _vm->_objectsMan->stopBobAnimation(1); + _vm->_objectsMan->stopBobAnimation(2); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 160, 6); + _vm->_soundMan->removeSample(1); } if (_vm->_globals->_saveData->_data[svField183] == 2) { - _vm->_objectsManager->setBobAnimDataIdx(1, 0); - _vm->_objectsManager->setBobAnimDataIdx(3, 0); - _vm->_objectsManager->setBobAnimation(1); - _vm->_objectsManager->setBobAnimation(3); - _vm->_soundManager->loadSample(1, "SOUND40.WAV"); + _vm->_objectsMan->setBobAnimDataIdx(1, 0); + _vm->_objectsMan->setBobAnimDataIdx(3, 0); + _vm->_objectsMan->setBobAnimation(1); + _vm->_objectsMan->setBobAnimation(3); + _vm->_soundMan->loadSample(1, "SOUND40.WAV"); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(1)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(1)) { case 1: case 3: case 5: case 7: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -1281,151 +1281,151 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(1) == 9) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(1) == 9) break; } - _vm->_objectsManager->stopBobAnimation(1); - _vm->_objectsManager->stopBobAnimation(3); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 161, 8); - _vm->_soundManager->removeSample(1); + _vm->_objectsMan->stopBobAnimation(1); + _vm->_objectsMan->stopBobAnimation(3); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 161, 8); + _vm->_soundMan->removeSample(1); } break; case 90: - _vm->_soundManager->playSoundFile("SOUND52.WAV"); + _vm->_soundMan->playSoundFile("SOUND52.WAV"); if (!_vm->_globals->_saveData->_data[svField186]) { - _vm->_animationManager->playSequence("CIB5A.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); + _vm->_animMan->playSequence("CIB5A.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); } else if (_vm->_globals->_saveData->_data[svField186] == 1) { - _vm->_animationManager->playSequence("CIB5C.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 329, 87, 2); + _vm->_animMan->playSequence("CIB5C.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 329, 87, 2); } break; case 91: - _vm->_soundManager->playSoundFile("SOUND52.WAV"); + _vm->_soundMan->playSoundFile("SOUND52.WAV"); if (!_vm->_globals->_saveData->_data[svField186]) { - _vm->_animationManager->playSequence("CIB5B.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); + _vm->_animMan->playSequence("CIB5B.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); } else if (_vm->_globals->_saveData->_data[svField186] == 1) { - _vm->_animationManager->playSequence("CIB5D.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 160, 6); + _vm->_animMan->playSequence("CIB5D.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 160, 6); } break; case 92: - _vm->_soundManager->playSoundFile("SOUND52.WAV"); + _vm->_soundMan->playSoundFile("SOUND52.WAV"); if (!_vm->_globals->_saveData->_data[svField184]) { - _vm->_animationManager->playSequence("CIB6A.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); + _vm->_animMan->playSequence("CIB6A.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); } else if (_vm->_globals->_saveData->_data[svField184] == 1) { - _vm->_animationManager->playSequence("CIB6C.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 293, 139, 3); + _vm->_animMan->playSequence("CIB6C.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 0); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 293, 139, 3); } break; case 93: - _vm->_soundManager->playSoundFile("SOUND52.WAV"); + _vm->_soundMan->playSoundFile("SOUND52.WAV"); if (!_vm->_globals->_saveData->_data[svField184]) { - _vm->_animationManager->playSequence("CIB6B.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); + _vm->_animMan->playSequence("CIB6B.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); } else if (_vm->_globals->_saveData->_data[svField184] == 1) { - _vm->_animationManager->playSequence("CIB6D.SEQ", 1, 12, 1, false, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 161, 8); + _vm->_animMan->playSequence("CIB6D.SEQ", 1, 12, 1, false, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 155, 29, 5); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 283, 161, 8); } break; case 94: if (!_vm->_globals->_saveData->_data[svField228]) - _vm->_talkManager->startAnimatedCharacterDialogue("flicn.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("flicn.pe2"); else if (_vm->_globals->_saveData->_data[svField228] == 1) - _vm->_talkManager->startAnimatedCharacterDialogue("flicn1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("flicn1.pe2"); break; case 95: - _vm->_objectsManager->setBobAnimation(9); - _vm->_objectsManager->setBobAnimation(10); - _vm->_objectsManager->setBobAnimation(12); - _vm->_objectsManager->setBobAnimDataIdx(9, 0); - _vm->_objectsManager->setBobAnimDataIdx(10, 0); - _vm->_objectsManager->setBobAnimDataIdx(12, 0); - _vm->_objectsManager->removeSprite(0); + _vm->_objectsMan->setBobAnimation(9); + _vm->_objectsMan->setBobAnimation(10); + _vm->_objectsMan->setBobAnimation(12); + _vm->_objectsMan->setBobAnimDataIdx(9, 0); + _vm->_objectsMan->setBobAnimDataIdx(10, 0); + _vm->_objectsMan->setBobAnimDataIdx(12, 0); + _vm->_objectsMan->removeSprite(0); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(9) != 15); - _vm->_objectsManager->stopBobAnimation(9); - _vm->_objectsManager->animateSprite(0); - _vm->_soundManager->playSoundFile("SOUND50.WAV"); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(9) != 15); + _vm->_objectsMan->stopBobAnimation(9); + _vm->_objectsMan->animateSprite(0); + _vm->_soundMan->playSoundFile("SOUND50.WAV"); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(12) != 117); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 830, 122, 0); - _vm->_objectsManager->stopBobAnimation(12); - _vm->_objectsManager->stopBobAnimation(10); - _vm->_objectsManager->setBobAnimation(11); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(12) != 117); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 830, 122, 0); + _vm->_objectsMan->stopBobAnimation(12); + _vm->_objectsMan->stopBobAnimation(10); + _vm->_objectsMan->setBobAnimation(11); break; case 98: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("CVIGIL2.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("CVIGIL2.PE2"); _vm->_globals->_introSpeechOffFl = false; break; case 100: - _vm->_talkManager->startAnimatedCharacterDialogue("tourist.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("tourist.pe2"); break; case 101: - _vm->_talkManager->startAnimatedCharacterDialogue("tahi1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("tahi1.pe2"); break; case 103: // Dice game _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("tourist1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("tourist1.pe2"); _vm->_globals->_introSpeechOffFl = false; - _vm->_animationManager->playAnim2("T421.ANM", 100, 14, 500); - _vm->_eventsManager->refreshScreenAndEvents(); - _vm->_eventsManager->refreshScreenAndEvents(); - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_animMan->playAnim2("T421.ANM", 100, 14, 500); + _vm->_events->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("tourist2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("tourist2.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 104: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("tourist3.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("tourist3.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 105: _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); - _vm->_objectsManager->resetOldDirection(); - _vm->_objectsManager->resetHomeRateCounter(); - _vm->_linesManager->_route = (RouteItem *)NULL; + _vm->_objectsMan->_oldCharacterPosX = _vm->_objectsMan->getSpriteX(0); + _vm->_objectsMan->resetOldDirection(); + _vm->_objectsMan->resetHomeRateCounter(); + _vm->_linesMan->_route = (RouteItem *)NULL; switch (_vm->_globals->_saveData->_data[svField253]) { case 1: - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 201, 294); + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 201, 294); break; case 2: - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 158, 338); + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 158, 338); break; default: if (_vm->_globals->_saveData->_data[svField253] > 2) - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 211, 393); + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 211, 393); break; } _vm->_globals->_checkDistanceFl = true; @@ -1433,25 +1433,25 @@ int ScriptManager::handleOpcode(byte *dataP) { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setSpriteIndex(0, 60); - _vm->_soundManager->loadSample(1, "SOUND63.WAV"); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setSpriteIndex(0, 60); + _vm->_soundMan->loadSample(1, "SOUND63.WAV"); if (_vm->_globals->_saveData->_data[svField253] > 2) { - _vm->_objectsManager->setBobAnimation(4); + _vm->_objectsMan->setBobAnimation(4); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(4)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(4)) { case 9: case 32: case 55: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -1461,25 +1461,25 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(4) == 72) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(4) == 72) break; } - _vm->_objectsManager->stopBobAnimation(4); + _vm->_objectsMan->stopBobAnimation(4); } if (_vm->_globals->_saveData->_data[svField253] == 1) { - _vm->_objectsManager->setBobAnimation(6); + _vm->_objectsMan->setBobAnimation(6); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(6)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(6)) { case 9: case 32: case 55: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -1489,25 +1489,25 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(6) == 72) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(6) == 72) break; } - _vm->_objectsManager->stopBobAnimation(6); + _vm->_objectsMan->stopBobAnimation(6); } if (_vm->_globals->_saveData->_data[svField253] == 2) { - _vm->_objectsManager->setBobAnimation(5); + _vm->_objectsMan->setBobAnimation(5); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(5)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(5)) { case 9: case 32: case 55: if (!playFl) { - _vm->_soundManager->playSample(1); + _vm->_soundMan->playSample(1); playFl = true; } break; @@ -1517,310 +1517,310 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(5) == 72) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(5) == 72) break; } - _vm->_objectsManager->stopBobAnimation(5); + _vm->_objectsMan->stopBobAnimation(5); } - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->doActionBack(1); - _vm->_soundManager->removeSample(1); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->doActionBack(1); + _vm->_soundMan->removeSample(1); break; case 106: - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(4); - _vm->_objectsManager->setBobAnimDataIdx(4, 0); - _vm->_soundManager->loadWav("SOUND61.WAV", 1); - _vm->_soundManager->loadWav("SOUND62.WAV", 2); - _vm->_soundManager->loadWav("SOUND61.WAV", 3); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(4); + _vm->_objectsMan->setBobAnimDataIdx(4, 0); + _vm->_soundMan->loadWav("SOUND61.WAV", 1); + _vm->_soundMan->loadWav("SOUND62.WAV", 2); + _vm->_soundMan->loadWav("SOUND61.WAV", 3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(4) != 10); - _vm->_soundManager->playWav(1); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(4) != 10); + _vm->_soundMan->playWav(1); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(4) != 18); - _vm->_soundManager->playWav(2); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(4) != 18); + _vm->_soundMan->playWav(2); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(4) != 62); - _vm->_soundManager->playWav(3); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(4) != 62); + _vm->_soundMan->playWav(3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(4) != 77); - _vm->_objectsManager->stopBobAnimation(4); - _vm->_objectsManager->animateSprite(0); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(4) != 77); + _vm->_objectsMan->stopBobAnimation(4); + _vm->_objectsMan->animateSprite(0); break; case 107: - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(5); - _vm->_objectsManager->setBobAnimDataIdx(5, 0); - _vm->_soundManager->loadWav("SOUND61.WAV", 1); - _vm->_soundManager->loadWav("SOUND62.WAV", 2); - _vm->_soundManager->loadWav("SOUND61.WAV", 3); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(5); + _vm->_objectsMan->setBobAnimDataIdx(5, 0); + _vm->_soundMan->loadWav("SOUND61.WAV", 1); + _vm->_soundMan->loadWav("SOUND62.WAV", 2); + _vm->_soundMan->loadWav("SOUND61.WAV", 3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(5) != 10); - _vm->_soundManager->playWav(1); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(5) != 10); + _vm->_soundMan->playWav(1); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(5) != 18); - _vm->_soundManager->playWav(2); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(5) != 18); + _vm->_soundMan->playWav(2); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(5) != 38); - _vm->_soundManager->playWav(3); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(5) != 38); + _vm->_soundMan->playWav(3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(5) != 53); - _vm->_objectsManager->stopBobAnimation(5); - _vm->_objectsManager->animateSprite(0); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(5) != 53); + _vm->_objectsMan->stopBobAnimation(5); + _vm->_objectsMan->animateSprite(0); break; case 108: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("peche1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("peche1.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 109: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("peche2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("peche2.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 110: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("peche3.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("peche3.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 111: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("peche4.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("peche4.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 112: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("teint1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("teint1.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 113: - _vm->_talkManager->startAnimatedCharacterDialogue("teint.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("teint.pe2"); break; case 114: - _vm->_talkManager->startAnimatedCharacterDialogue("tahibar.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("tahibar.pe2"); break; case 115: - _vm->_talkManager->startAnimatedCharacterDialogue("ilebar.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("ilebar.pe2"); break; case 116: - _vm->_talkManager->startAnimatedCharacterDialogue("Profred.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("Profred.pe2"); break; case 170: - _vm->_talkManager->startAnimatedCharacterDialogue("GRED.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("GRED.pe2"); break; case 171: { _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("gred1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("gred1.pe2"); _vm->_globals->_introSpeechOffFl = false; _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); - _vm->_objectsManager->resetOldDirection(); - _vm->_objectsManager->resetHomeRateCounter(); + _vm->_objectsMan->_oldCharacterPosX = _vm->_objectsMan->getSpriteX(0); + _vm->_objectsMan->resetOldDirection(); + _vm->_objectsMan->resetHomeRateCounter(); _vm->_globals->_checkDistanceFl = true; - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 361, 325); + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 361, 325); _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_zoneNum = -1; + _vm->_objectsMan->_zoneNum = -1; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); _vm->_globals->_exitId = 59; break; } case 172: - _vm->_talkManager->startAnimatedCharacterDialogue("GBLEU.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("GBLEU.pe2"); break; case 173: { _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("gbleu1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("gbleu1.pe2"); _vm->_globals->_introSpeechOffFl = false; _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); - _vm->_objectsManager->resetOldDirection(); - _vm->_objectsManager->resetHomeRateCounter(); + _vm->_objectsMan->_oldCharacterPosX = _vm->_objectsMan->getSpriteX(0); + _vm->_objectsMan->resetOldDirection(); + _vm->_objectsMan->resetHomeRateCounter(); _vm->_globals->_checkDistanceFl = true; - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 361, 325); + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 361, 325); _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_zoneNum = -1; + _vm->_objectsMan->_zoneNum = -1; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); _vm->_globals->_exitId = 59; break; } case 174: - _vm->_talkManager->startAnimatedCharacterDialogue("Profbl.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("Profbl.pe2"); break; case 175: - _vm->_objectsManager->setSpriteIndex(0, 55); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(9); - _vm->_objectsManager->setBobAnimation(10); - _vm->_objectsManager->setBobOffset(10, 300); - _vm->_soundManager->playSoundFile("SOUND44.WAV"); + _vm->_objectsMan->setSpriteIndex(0, 55); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(9); + _vm->_objectsMan->setBobAnimation(10); + _vm->_objectsMan->setBobOffset(10, 300); + _vm->_soundMan->playSoundFile("SOUND44.WAV"); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(10) != 7); - _vm->_objectsManager->setBobAnimation(6); - _vm->_objectsManager->stopBobAnimation(3); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(10) != 7); + _vm->_objectsMan->setBobAnimation(6); + _vm->_objectsMan->stopBobAnimation(3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(6) != 10); - _vm->_soundManager->playSoundFile("SOUND71.WAV"); - _vm->_objectsManager->setBobAnimation(7); - _vm->_objectsManager->stopBobAnimation(4); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(6) != 10); + _vm->_soundMan->playSoundFile("SOUND71.WAV"); + _vm->_objectsMan->setBobAnimation(7); + _vm->_objectsMan->stopBobAnimation(4); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(7) != 15); - _vm->_objectsManager->stopBobAnimation(5); - _vm->_objectsManager->setBobAnimation(8); - _vm->_soundManager->playSoundFile("SOUND70.WAV"); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(7) != 15); + _vm->_objectsMan->stopBobAnimation(5); + _vm->_objectsMan->setBobAnimation(8); + _vm->_soundMan->playSoundFile("SOUND70.WAV"); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(8) != 76); - _vm->_objectsManager->stopBobAnimation(6); - _vm->_objectsManager->stopBobAnimation(7); - _vm->_objectsManager->stopBobAnimation(8); - _vm->_objectsManager->stopBobAnimation(9); - _vm->_objectsManager->stopBobAnimation(10); - _vm->_objectsManager->animateSprite(0); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(8) != 76); + _vm->_objectsMan->stopBobAnimation(6); + _vm->_objectsMan->stopBobAnimation(7); + _vm->_objectsMan->stopBobAnimation(8); + _vm->_objectsMan->stopBobAnimation(9); + _vm->_objectsMan->stopBobAnimation(10); + _vm->_objectsMan->animateSprite(0); break; case 176: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("gred2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("gred2.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 177: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("gbleu2.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("gbleu2.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 200: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("Gm2.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("Gm2.PE2"); _vm->_globals->_introSpeechOffFl = false; break; case 201: - _vm->_objectsManager->setBobAnimation(3); + _vm->_objectsMan->setBobAnimation(3); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(3) != 18); - _vm->_objectsManager->stopBobAnimation(3); - _vm->_objectsManager->setBobAnimation(4); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(3) != 18); + _vm->_objectsMan->stopBobAnimation(3); + _vm->_objectsMan->setBobAnimation(4); break; case 202: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("SVGARD2.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("SVGARD2.PE2"); _vm->_globals->_introSpeechOffFl = false; break; case 203: - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(4); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(4); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(4) == 18) - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 18, 334, 0, false); - } while (_vm->_objectsManager->getBobAnimDataIdx(4) != 26); - _vm->_objectsManager->stopBobAnimation(4); - _vm->_objectsManager->animateSprite(0); + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(4) == 18) + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 18, 334, 0, false); + } while (_vm->_objectsMan->getBobAnimDataIdx(4) != 26); + _vm->_objectsMan->stopBobAnimation(4); + _vm->_objectsMan->animateSprite(0); break; case 204: { - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(3); - _vm->_soundManager->loadWav("SOUND67.WAV", 1); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(3); + _vm->_soundMan->loadWav("SOUND67.WAV", 1); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(3)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(3)) { case 10: if (!playFl) { - _vm->_soundManager->playWav(1); + _vm->_soundMan->playWav(1); playFl = true; } break; @@ -1828,28 +1828,28 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(3) == 50) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(3) == 50) break; } - _vm->_objectsManager->stopBobAnimation(3); - _vm->_objectsManager->animateSprite(0); + _vm->_objectsMan->stopBobAnimation(3); + _vm->_objectsMan->animateSprite(0); break; } case 205: { - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(4); - _vm->_soundManager->loadWav("SOUND69.WAV", 1); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(4); + _vm->_soundMan->loadWav("SOUND69.WAV", 1); bool playFl = false; for (;;) { if (_vm->shouldQuit()) return -1; // Exiting game - switch (_vm->_objectsManager->getBobAnimDataIdx(4)) { + switch (_vm->_objectsMan->getBobAnimDataIdx(4)) { case 10: if (!playFl) { - _vm->_soundManager->playWav(1); + _vm->_soundMan->playWav(1); playFl = true; } break; @@ -1857,233 +1857,233 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = false; break; } - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(4) == 24) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(4) == 24) break; } - _vm->_objectsManager->stopBobAnimation(4); - _vm->_objectsManager->animateSprite(0); + _vm->_objectsMan->stopBobAnimation(4); + _vm->_objectsMan->animateSprite(0); break; } case 207: - _vm->_talkManager->animateObject("PANNEAU.PE2"); + _vm->_talkMan->animateObject("PANNEAU.PE2"); break; case 208: { _vm->_globals->_disableInventFl = true; if (_vm->_globals->_saveData->_data[svLastPrevScreenId] != _vm->_globals->_saveData->_data[svField401]) { - _vm->_soundManager->_specialSoundNum = 208; - _vm->_animationManager->playSequence("SORT.SEQ", 10, 4, 10, true, false); - _vm->_soundManager->_specialSoundNum = 0; + _vm->_soundMan->_specialSoundNum = 208; + _vm->_animMan->playSequence("SORT.SEQ", 10, 4, 10, true, false); + _vm->_soundMan->_specialSoundNum = 0; } _vm->_globals->_checkDistanceFl = true; - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 330, 418); + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 330, 418); _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_zoneNum = 0; + _vm->_objectsMan->_zoneNum = 0; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->setSpriteIndex(0, 64); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->setSpriteIndex(0, 64); _vm->_globals->_exitId = _vm->_globals->_saveData->_data[svField401]; _vm->_globals->_disableInventFl = false; break; } case 209: { - _vm->_objectsManager->setBobAnimDataIdx(1, 0); - _vm->_objectsManager->setBobAnimDataIdx(2, 0); - _vm->_objectsManager->setSpriteIndex(0, 60); - _vm->_objectsManager->stopBobAnimation(4); - _vm->_objectsManager->setBobAnimation(1); + _vm->_objectsMan->setBobAnimDataIdx(1, 0); + _vm->_objectsMan->setBobAnimDataIdx(2, 0); + _vm->_objectsMan->setSpriteIndex(0, 60); + _vm->_objectsMan->stopBobAnimation(4); + _vm->_objectsMan->setBobAnimation(1); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(1) != 9); - _vm->_objectsManager->stopBobAnimation(1); - _vm->_linesManager->_route = (RouteItem *)NULL; + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(1) != 9); + _vm->_objectsMan->stopBobAnimation(1); + _vm->_linesMan->_route = (RouteItem *)NULL; _vm->_globals->_checkDistanceFl = true; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 330, 314); - _vm->_objectsManager->_zoneNum = 0; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 330, 314); + _vm->_objectsMan->_zoneNum = 0; _vm->_globals->_checkDistanceFl = true; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->setSpriteIndex(0, 64); - _vm->_objectsManager->setBobAnimation(2); - _vm->_soundManager->playSoundFile("SOUND66.WAV"); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->setSpriteIndex(0, 64); + _vm->_objectsMan->setBobAnimation(2); + _vm->_soundMan->playSoundFile("SOUND66.WAV"); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(2) != 10); - _vm->_objectsManager->stopBobAnimation(2); - _vm->_objectsManager->setBobAnimation(4); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(2) != 10); + _vm->_objectsMan->stopBobAnimation(2); + _vm->_objectsMan->setBobAnimation(4); break; } case 210: - _vm->_soundManager->_specialSoundNum = 210; - _vm->_animationManager->playSequence2("SECRET1.SEQ", 1, 12, 1, true); - _vm->_soundManager->_specialSoundNum = 0; - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 192, 152, 0); - _vm->_objectsManager->setBobAnimation(9); - _vm->_objectsManager->loadLinkFile("IM73a", true); - _vm->_objectsManager->enableHidingBehavior(); - _vm->_objectsManager->setHidingUseCount(0); - _vm->_objectsManager->setHidingUseCount(1); - _vm->_graphicsManager->setColorPercentage2(252, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage2(253, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage2(251, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage2(254, 0, 0, 0); + _vm->_soundMan->_specialSoundNum = 210; + _vm->_animMan->playSequence2("SECRET1.SEQ", 1, 12, 1, true); + _vm->_soundMan->_specialSoundNum = 0; + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 192, 152, 0); + _vm->_objectsMan->setBobAnimation(9); + _vm->_objectsMan->loadLinkFile("IM73a", true); + _vm->_objectsMan->enableHidingBehavior(); + _vm->_objectsMan->setHidingUseCount(0); + _vm->_objectsMan->setHidingUseCount(1); + _vm->_graphicsMan->setColorPercentage2(252, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage2(253, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage2(251, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage2(254, 0, 0, 0); break; case 211: - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->disableHidingBehavior(); - _vm->_soundManager->_specialSoundNum = 211; - _vm->_animationManager->playSequence("SECRET2.SEQ", 1, 12, 100, false, true); - _vm->_soundManager->_specialSoundNum = 0; - _vm->_graphicsManager->_noFadingFl = true; - _vm->_graphicsManager->fadeOutLong(); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->disableHidingBehavior(); + _vm->_soundMan->_specialSoundNum = 211; + _vm->_animMan->playSequence("SECRET2.SEQ", 1, 12, 100, false, true); + _vm->_soundMan->_specialSoundNum = 0; + _vm->_graphicsMan->_noFadingFl = true; + _vm->_graphicsMan->fadeOutLong(); for (int i = 1; i <= 39; i++) { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); } - _vm->_graphicsManager->setColorPercentage2(252, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage2(253, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage2(251, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage2(254, 0, 0, 0); + _vm->_graphicsMan->setColorPercentage2(252, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage2(253, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage2(251, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage2(254, 0, 0, 0); break; case 215: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("aviat.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("aviat.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 216: _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("aviat1.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("aviat1.pe2"); _vm->_globals->_introSpeechOffFl = false; break; case 229: - _vm->_soundManager->_specialSoundNum = 229; - _vm->_animationManager->playSequence("MUR.SEQ", 1, 12, 1, false, false); - _vm->_soundManager->_specialSoundNum = 0; - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 340, 157, 2); + _vm->_soundMan->_specialSoundNum = 229; + _vm->_animMan->playSequence("MUR.SEQ", 1, 12, 1, false, false); + _vm->_soundMan->_specialSoundNum = 0; + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 340, 157, 2); break; case 230: { - _vm->_objectsManager->loadLinkFile("IM93a", true); - _vm->_objectsManager->enableHidingBehavior(); + _vm->_objectsMan->loadLinkFile("IM93a", true); + _vm->_objectsMan->enableHidingBehavior(); _vm->_globals->_checkDistanceFl = true; - _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); - _vm->_objectsManager->resetOldDirection(); - _vm->_objectsManager->resetHomeRateCounter(); + _vm->_objectsMan->_oldCharacterPosX = _vm->_objectsMan->getSpriteX(0); + _vm->_objectsMan->resetOldDirection(); + _vm->_objectsMan->resetHomeRateCounter(); _vm->_globals->_checkDistanceFl = true; - _vm->_linesManager->_route = (RouteItem *)NULL; - _vm->_linesManager->_route = _vm->_linesManager->findRoute(_vm->_objectsManager->getSpriteX(0), _vm->_objectsManager->getSpriteY(0), 488, 280); + _vm->_linesMan->_route = (RouteItem *)NULL; + _vm->_linesMan->_route = _vm->_linesMan->findRoute(_vm->_objectsMan->getSpriteX(0), _vm->_objectsMan->getSpriteY(0), 488, 280); _vm->_globals->_checkDistanceFl = true; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_objectsManager->GOHOME(); - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_linesManager->_route != (RouteItem *)NULL); - _vm->_objectsManager->removeSprite(0); + _vm->_objectsMan->GOHOME(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_linesMan->_route != (RouteItem *)NULL); + _vm->_objectsMan->removeSprite(0); bool playFl = false; - _vm->_objectsManager->setBobAnimation(7); + _vm->_objectsMan->setBobAnimation(7); do { if (_vm->shouldQuit()) return -1; // Exiting game - if (_vm->_objectsManager->getBobAnimDataIdx(7) == 9 && !playFl) { + if (_vm->_objectsMan->getBobAnimDataIdx(7) == 9 && !playFl) { playFl = true; - _vm->_soundManager->playSoundFile("SOUND81.WAV"); + _vm->_soundMan->playSoundFile("SOUND81.WAV"); } - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(7) != 15); - _vm->_objectsManager->stopBobAnimation(7); - _vm->_objectsManager->setSpriteX(0, 476); - _vm->_objectsManager->setSpriteY(0, 278); - _vm->_objectsManager->animateSprite(0); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 337, 154, 3); - _vm->_objectsManager->loadLinkFile("IM93c", true); - _vm->_objectsManager->enableHidingBehavior(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(7) != 15); + _vm->_objectsMan->stopBobAnimation(7); + _vm->_objectsMan->setSpriteX(0, 476); + _vm->_objectsMan->setSpriteY(0, 278); + _vm->_objectsMan->animateSprite(0); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 337, 154, 3); + _vm->_objectsMan->loadLinkFile("IM93c", true); + _vm->_objectsMan->enableHidingBehavior(); break; } case 231: - _vm->_objectsManager->disableHidingBehavior(); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(12); + _vm->_objectsMan->disableHidingBehavior(); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(12); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(12) != 6); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(12) != 6); _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("PRMORT.pe2"); + _vm->_talkMan->startAnimatedCharacterDialogue("PRMORT.pe2"); _vm->_globals->_introSpeechOffFl = false; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(12) != 12); - _vm->_objectsManager->animateSprite(0); - _vm->_objectsManager->stopBobAnimation(12); - _vm->_objectsManager->enableHidingBehavior(); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(12) != 12); + _vm->_objectsMan->animateSprite(0); + _vm->_objectsMan->stopBobAnimation(12); + _vm->_objectsMan->enableHidingBehavior(); break; case 233: { - _vm->_objectsManager->disableHidingBehavior(); - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setBobAnimation(11); + _vm->_objectsMan->disableHidingBehavior(); + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setBobAnimation(11); bool playFl = false; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - if (_vm->_objectsManager->getBobAnimDataIdx(11) == 10 && !playFl) + _vm->_events->refreshScreenAndEvents(); + if (_vm->_objectsMan->getBobAnimDataIdx(11) == 10 && !playFl) playFl = true; - } while (_vm->_objectsManager->getBobAnimDataIdx(11) != 13); - _vm->_objectsManager->stopBobAnimation(11); - _vm->_objectsManager->enableHidingBehavior(); - _vm->_objectsManager->setBobAnimation(13); + } while (_vm->_objectsMan->getBobAnimDataIdx(11) != 13); + _vm->_objectsMan->stopBobAnimation(11); + _vm->_objectsMan->enableHidingBehavior(); + _vm->_objectsMan->setBobAnimation(13); do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - } while (_vm->_objectsManager->getBobAnimDataIdx(13) != 48); + _vm->_events->refreshScreenAndEvents(); + } while (_vm->_objectsMan->getBobAnimDataIdx(13) != 48); _vm->_globals->_introSpeechOffFl = true; - _vm->_talkManager->startAnimatedCharacterDialogue("HRADIO.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("HRADIO.PE2"); _vm->_globals->_introSpeechOffFl = false; - _vm->_graphicsManager->fadeOutLong(); - _vm->_objectsManager->stopBobAnimation(13); - _vm->_graphicsManager->_noFadingFl = true; + _vm->_graphicsMan->fadeOutLong(); + _vm->_objectsMan->stopBobAnimation(13); + _vm->_graphicsMan->_noFadingFl = true; _vm->_globals->_exitId = 94; break; } @@ -2101,27 +2101,27 @@ int ScriptManager::handleOpcode(byte *dataP) { vbobFrameIndex = 4; break; } - _vm->_soundManager->playSoundFile("SOUND83.WAV"); - _vm->_objectsManager->setAndPlayAnim(vbobFrameIndex, 26, 50, false); + _vm->_soundMan->playSoundFile("SOUND83.WAV"); + _vm->_objectsMan->setAndPlayAnim(vbobFrameIndex, 26, 50, false); switch (_vm->_globals->_saveData->_data[svField341]) { case 1: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 0); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 0); _vm->_globals->_saveData->_data[svField338] = 0; break; case 2: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 2); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 2); _vm->_globals->_saveData->_data[svField339] = 0; break; case 3: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 4); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 4); _vm->_globals->_saveData->_data[svField340] = 0; break; } } - _vm->_soundManager->playSoundFile("SOUND83.WAV"); - _vm->_objectsManager->setAndPlayAnim(6, 0, 23, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 1); + _vm->_soundMan->playSoundFile("SOUND83.WAV"); + _vm->_objectsMan->setAndPlayAnim(6, 0, 23, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 1); break; } @@ -2139,28 +2139,28 @@ int ScriptManager::handleOpcode(byte *dataP) { } if (_vm->_globals->_saveData->_data[svField341]) { - _vm->_soundManager->playSoundFile("SOUND83.WAV"); - _vm->_objectsManager->setAndPlayAnim(vbobFrameIndex, 26, 50, false); + _vm->_soundMan->playSoundFile("SOUND83.WAV"); + _vm->_objectsMan->setAndPlayAnim(vbobFrameIndex, 26, 50, false); switch (_vm->_globals->_saveData->_data[svField341]) { case 1: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 0); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 0); _vm->_globals->_saveData->_data[svField338] = 0; break; case 2: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 2); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 2); _vm->_globals->_saveData->_data[svField339] = 0; break; case 3: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 4); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 4); _vm->_globals->_saveData->_data[svField340] = 0; break; } } - _vm->_soundManager->playSoundFile("SOUND83.WAV"); - _vm->_objectsManager->setAndPlayAnim(5, 0, 23, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 3); + _vm->_soundMan->playSoundFile("SOUND83.WAV"); + _vm->_objectsMan->setAndPlayAnim(5, 0, 23, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 3); break; } @@ -2178,47 +2178,47 @@ int ScriptManager::handleOpcode(byte *dataP) { } if (_vm->_globals->_saveData->_data[svField341]) { - _vm->_soundManager->playSoundFile("SOUND83.WAV"); - _vm->_objectsManager->setAndPlayAnim(vbobFrameIndex, 26, 50, false); + _vm->_soundMan->playSoundFile("SOUND83.WAV"); + _vm->_objectsMan->setAndPlayAnim(vbobFrameIndex, 26, 50, false); switch (_vm->_globals->_saveData->_data[svField341]) { case 1: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 0); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 27, 117, 0); _vm->_globals->_saveData->_data[svField338] = 0; break; case 2: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 2); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 145, 166, 2); _vm->_globals->_saveData->_data[svField339] = 0; break; case 3: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 4); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 4); _vm->_globals->_saveData->_data[svField340] = 0; break; } } - _vm->_soundManager->playSoundFile("SOUND83.WAV"); - _vm->_objectsManager->setAndPlayAnim(4, 0, 23, false); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 5); + _vm->_soundMan->playSoundFile("SOUND83.WAV"); + _vm->_objectsMan->setAndPlayAnim(4, 0, 23, false); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 296, 212, 5); break; } case 239: - _vm->_objectsManager->removeSprite(0); - _vm->_soundManager->playSoundFile("SOUND84.WAV"); - _vm->_objectsManager->setAndPlayAnim(16, 0, 10, false); + _vm->_objectsMan->removeSprite(0); + _vm->_soundMan->playSoundFile("SOUND84.WAV"); + _vm->_objectsMan->setAndPlayAnim(16, 0, 10, false); break; case 240: { - _vm->_objectsManager->setBobAnimation(1); + _vm->_objectsMan->setBobAnimation(1); bool soundFlag = false; do { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); - switch (_vm->_objectsManager->getBobAnimDataIdx(1)) { + _vm->_events->refreshScreenAndEvents(); + switch (_vm->_objectsMan->getBobAnimDataIdx(1)) { case 12: if (!soundFlag) { - _vm->_soundManager->playSoundFile("SOUND86.WAV"); + _vm->_soundMan->playSoundFile("SOUND86.WAV"); soundFlag = true; } break; @@ -2230,32 +2230,32 @@ int ScriptManager::handleOpcode(byte *dataP) { break; case 25: if (!soundFlag) { - _vm->_soundManager->playSoundFile("SOUND85.WAV"); + _vm->_soundMan->playSoundFile("SOUND85.WAV"); soundFlag = true; } break; } - } while (_vm->_objectsManager->getBobAnimDataIdx(1) != 32); - _vm->_objectsManager->stopBobAnimation(1); - _vm->_objectsManager->setBobAnimation(2); - _vm->_fontManager->hideText(9); + } while (_vm->_objectsMan->getBobAnimDataIdx(1) != 32); + _vm->_objectsMan->stopBobAnimation(1); + _vm->_objectsMan->setBobAnimation(2); + _vm->_fontMan->hideText(9); bool displayedTxtFl = false; - if (!_vm->_soundManager->_textOffFl) { - _vm->_fontManager->initTextBuffers(9, 617, _vm->_globals->_textFilename, 91, 41, 3, 30, 253); - _vm->_fontManager->showText(9); + if (!_vm->_soundMan->_textOffFl) { + _vm->_fontMan->initTextBuffers(9, 617, _vm->_globals->_textFilename, 91, 41, 3, 30, 253); + _vm->_fontMan->showText(9); displayedTxtFl = true; } - if (!_vm->_soundManager->_voiceOffFl) - _vm->_soundManager->mixVoice(617, 4, displayedTxtFl); + if (!_vm->_soundMan->_voiceOffFl) + _vm->_soundMan->mixVoice(617, 4, displayedTxtFl); for (int i = 0; i <= 29; i++) { if (_vm->shouldQuit()) return -1; // Exiting game - _vm->_eventsManager->refreshScreenAndEvents(); + _vm->_events->refreshScreenAndEvents(); } CharacterLocation *realHopkins = &_vm->_globals->_saveData->_realHopkins; - realHopkins->_pos.x = _vm->_objectsManager->getSpriteX(0); - realHopkins->_pos.y = _vm->_objectsManager->getSpriteY(0); + realHopkins->_pos.x = _vm->_objectsMan->getSpriteX(0); + realHopkins->_pos.y = _vm->_objectsMan->getSpriteY(0); realHopkins->_startSpriteIndex = 57; realHopkins->_location = 97; _vm->_globals->_saveData->_data[svHopkinsCloneFl] = 1; @@ -2266,13 +2266,13 @@ int ScriptManager::handleOpcode(byte *dataP) { } case 241: - _vm->_talkManager->startAnimatedCharacterDialogue("RECEP.PE2"); + _vm->_talkMan->startAnimatedCharacterDialogue("RECEP.PE2"); break; // Resurrect Samantha's clone case 242: { - _vm->_soundManager->playSoundFile("SOUND87.WAV"); - _vm->_animationManager->playSequence("RESUF.SEQ", 1, 24, 1, false, true); + _vm->_soundMan->playSoundFile("SOUND87.WAV"); + _vm->_animMan->playSequence("RESUF.SEQ", 1, 24, 1, false, true); CharacterLocation *samantha = &_vm->_globals->_saveData->_samantha; samantha->_pos.x = 404; @@ -2285,110 +2285,110 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_globals->_saveData->_data[svField354] = 0; _vm->_globals->_saveData->_data[svField356] = 0; _vm->_globals->_saveData->_data[svField355] = 1; - _vm->_objectsManager->_twoCharactersFl = true; - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 373, 191, 3); - _vm->_objectsManager->addStaticSprite(_vm->_objectsManager->_headSprites, samantha->_pos, 1, 3, samantha->_zoomFactor, false, 20, 127); - _vm->_objectsManager->animateSprite(1); + _vm->_objectsMan->_twoCharactersFl = true; + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 373, 191, 3); + _vm->_objectsMan->addStaticSprite(_vm->_objectsMan->_headSprites, samantha->_pos, 1, 3, samantha->_zoomFactor, false, 20, 127); + _vm->_objectsMan->animateSprite(1); break; } case 243: - _vm->_soundManager->playSoundFile("SOUND88.WAV"); + _vm->_soundMan->playSoundFile("SOUND88.WAV"); if (_vm->_globals->_saveData->_data[svField341] == 2) { - _vm->_animationManager->playSequence("RESU.SEQ", 2, 24, 2, false, true); + _vm->_animMan->playSequence("RESU.SEQ", 2, 24, 2, false, true); } else { - _vm->_objectsManager->setAndPlayAnim(7, 0, 14, false); + _vm->_objectsMan->setAndPlayAnim(7, 0, 14, false); } break; case 245: - _vm->_soundManager->playSoundFile("SOUND89.WAV"); - _vm->_objectsManager->setAndPlayAnim(5, 0, 6, false); - _vm->_linesManager->_zone[4]._destX = 276; - _vm->_objectsManager->enableVerb(4, 19); - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 285, 379, 0); + _vm->_soundMan->playSoundFile("SOUND89.WAV"); + _vm->_objectsMan->setAndPlayAnim(5, 0, 6, false); + _vm->_linesMan->_zone[4]._destX = 276; + _vm->_objectsMan->enableVerb(4, 19); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 285, 379, 0); _vm->_globals->_saveData->_data[svField399] = 1; break; case 246: - _vm->_objectsManager->removeSprite(0); - _vm->_objectsManager->setAndPlayAnim(6, 0, 15, false); - _vm->_objectsManager->_charactersEnabledFl = true; - _vm->_graphicsManager->displayScreen(true); - _vm->_animationManager->playSequence2("TUNNEL.SEQ", 1, 18, 20, true); - _vm->_graphicsManager->_noFadingFl = true; - _vm->_graphicsManager->fadeOutLong(); - _vm->_objectsManager->_charactersEnabledFl = false; + _vm->_objectsMan->removeSprite(0); + _vm->_objectsMan->setAndPlayAnim(6, 0, 15, false); + _vm->_objectsMan->_charactersEnabledFl = true; + _vm->_graphicsMan->displayScreen(true); + _vm->_animMan->playSequence2("TUNNEL.SEQ", 1, 18, 20, true); + _vm->_graphicsMan->_noFadingFl = true; + _vm->_graphicsMan->fadeOutLong(); + _vm->_objectsMan->_charactersEnabledFl = false; _vm->_globals->_exitId = 100; break; case 600: if (!_vm->getIsDemo()) { - _vm->_graphicsManager->_fadingFl = true; - _vm->_graphicsManager->_fadeDefaultSpeed = 1; - _vm->_animationManager->playAnim("BOMBE1A.ANM", 100, 18, 100); + _vm->_graphicsMan->_fadingFl = true; + _vm->_graphicsMan->_fadeDefaultSpeed = 1; + _vm->_animMan->playAnim("BOMBE1A.ANM", 100, 18, 100); } - _vm->_graphicsManager->loadImage("BOMBEB"); - _vm->_graphicsManager->setColorPercentage(252, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage(253, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage(251, 100, 100, 100); - _vm->_graphicsManager->setColorPercentage(254, 0, 0, 0); - _vm->_graphicsManager->initScreen("BOMBE", 2, true); - _vm->_graphicsManager->fadeInShort(); + _vm->_graphicsMan->loadImage("BOMBEB"); + _vm->_graphicsMan->setColorPercentage(252, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage(253, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage(251, 100, 100, 100); + _vm->_graphicsMan->setColorPercentage(254, 0, 0, 0); + _vm->_graphicsMan->initScreen("BOMBE", 2, true); + _vm->_graphicsMan->fadeInShort(); break; case 601: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); - _vm->_objectsManager->setAndPlayAnim(2, 0, 16, true); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); + _vm->_objectsMan->setAndPlayAnim(2, 0, 16, true); break; case 602: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); - _vm->_objectsManager->setAndPlayAnim(4, 0, 16, true); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); + _vm->_objectsMan->setAndPlayAnim(4, 0, 16, true); break; case 603: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); - _vm->_objectsManager->setAndPlayAnim(3, 0, 16, true); - _vm->_soundManager->_specialSoundNum = 199; - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playAnim("BOMBE2A.ANM", 50, 14, 500); - _vm->_soundManager->_specialSoundNum = 0; - memset(_vm->_graphicsManager->_frontBuffer, 0, 614400); - _vm->_graphicsManager->_noFadingFl = true; + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); + _vm->_objectsMan->setAndPlayAnim(3, 0, 16, true); + _vm->_soundMan->_specialSoundNum = 199; + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playAnim("BOMBE2A.ANM", 50, 14, 500); + _vm->_soundMan->_specialSoundNum = 0; + memset(_vm->_graphicsMan->_frontBuffer, 0, 614400); + _vm->_graphicsMan->_noFadingFl = true; _vm->_globals->_exitId = 151; break; case 604: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); - _vm->_objectsManager->setAndPlayAnim(1, 0, 16, true); - _vm->_soundManager->_specialSoundNum = 199; - _vm->_animationManager->playAnim("BOMBE2A.ANM", 50, 14, 500); - _vm->_soundManager->_specialSoundNum = 0; - _vm->_graphicsManager->_noFadingFl = true; - memset(_vm->_graphicsManager->_frontBuffer, 0, 614400); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); + _vm->_objectsMan->setAndPlayAnim(1, 0, 16, true); + _vm->_soundMan->_specialSoundNum = 199; + _vm->_animMan->playAnim("BOMBE2A.ANM", 50, 14, 500); + _vm->_soundMan->_specialSoundNum = 0; + _vm->_graphicsMan->_noFadingFl = true; + memset(_vm->_graphicsMan->_frontBuffer, 0, 614400); _vm->_globals->_exitId = 151; break; case 605: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); - _vm->_objectsManager->setAndPlayAnim(5, 0, 16, true); - _vm->_graphicsManager->fadeOutShort(); - _vm->_soundManager->_specialSoundNum = 199; - _vm->_graphicsManager->_fadingFl = true; - _vm->_animationManager->playAnim("BOMBE2A.ANM", 50, 14, 500); - _vm->_soundManager->_specialSoundNum = 0; - _vm->_graphicsManager->_noFadingFl = true; - memset(_vm->_graphicsManager->_frontBuffer, 0, 614400); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); + _vm->_objectsMan->setAndPlayAnim(5, 0, 16, true); + _vm->_graphicsMan->fadeOutShort(); + _vm->_soundMan->_specialSoundNum = 199; + _vm->_graphicsMan->_fadingFl = true; + _vm->_animMan->playAnim("BOMBE2A.ANM", 50, 14, 500); + _vm->_soundMan->_specialSoundNum = 0; + _vm->_graphicsMan->_noFadingFl = true; + memset(_vm->_graphicsMan->_frontBuffer, 0, 614400); _vm->_globals->_exitId = 151; break; case 606: - _vm->_graphicsManager->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); - _vm->_objectsManager->setAndPlayAnim(6, 0, 16, true); + _vm->_graphicsMan->fastDisplay(_vm->_globals->_levelSpriteBuf, 513, 163, 7, false); + _vm->_objectsMan->setAndPlayAnim(6, 0, 16, true); if ((_vm->getPlatform() != Common::kPlatformWindows) || !_vm->getIsDemo()) { - _vm->_animationManager->playAnim("BOMBE3A.ANM", 50, 14, 500); - memset(_vm->_graphicsManager->_frontBuffer, 0, 614400); + _vm->_animMan->playAnim("BOMBE3A.ANM", 50, 14, 500); + memset(_vm->_graphicsMan->_frontBuffer, 0, 614400); } _vm->_globals->_exitId = 6; break; @@ -2396,46 +2396,46 @@ int ScriptManager::handleOpcode(byte *dataP) { case 607: // Display bomb plan if (!_vm->getIsDemo()) { - memcpy(_vm->_graphicsManager->_oldPalette, _vm->_graphicsManager->_palette, 769); - _vm->_animationManager->playAnim2("PLAN.ANM", 50, 10, 800); + memcpy(_vm->_graphicsMan->_oldPalette, _vm->_graphicsMan->_palette, 769); + _vm->_animMan->playAnim2("PLAN.ANM", 50, 10, 800); } - _vm->_graphicsManager->resetDirtyRects(); + _vm->_graphicsMan->resetDirtyRects(); break; case 608: - _vm->_objectsManager->stopBobAnimation(2); - _vm->_objectsManager->stopBobAnimation(3); - _vm->_objectsManager->stopBobAnimation(4); - _vm->_objectsManager->stopBobAnimation(6); - _vm->_objectsManager->stopBobAnimation(11); - _vm->_objectsManager->stopBobAnimation(10); + _vm->_objectsMan->stopBobAnimation(2); + _vm->_objectsMan->stopBobAnimation(3); + _vm->_objectsMan->stopBobAnimation(4); + _vm->_objectsMan->stopBobAnimation(6); + _vm->_objectsMan->stopBobAnimation(11); + _vm->_objectsMan->stopBobAnimation(10); break; case 609: - _vm->_objectsManager->setBobAnimation(2); - _vm->_objectsManager->setBobAnimation(3); - _vm->_objectsManager->setBobAnimation(4); - _vm->_objectsManager->setBobAnimation(6); - _vm->_objectsManager->setBobAnimation(11); - _vm->_objectsManager->setBobAnimation(10); + _vm->_objectsMan->setBobAnimation(2); + _vm->_objectsMan->setBobAnimation(3); + _vm->_objectsMan->setBobAnimation(4); + _vm->_objectsMan->setBobAnimation(6); + _vm->_objectsMan->setBobAnimation(11); + _vm->_objectsMan->setBobAnimation(10); break; case 610: - _vm->_objectsManager->stopBobAnimation(5); - _vm->_objectsManager->stopBobAnimation(7); - _vm->_objectsManager->stopBobAnimation(8); - _vm->_objectsManager->stopBobAnimation(9); - _vm->_objectsManager->stopBobAnimation(12); - _vm->_objectsManager->stopBobAnimation(13); + _vm->_objectsMan->stopBobAnimation(5); + _vm->_objectsMan->stopBobAnimation(7); + _vm->_objectsMan->stopBobAnimation(8); + _vm->_objectsMan->stopBobAnimation(9); + _vm->_objectsMan->stopBobAnimation(12); + _vm->_objectsMan->stopBobAnimation(13); break; case 611: - _vm->_objectsManager->setBobAnimation(5); - _vm->_objectsManager->setBobAnimation(7); - _vm->_objectsManager->setBobAnimation(8); - _vm->_objectsManager->setBobAnimation(9); - _vm->_objectsManager->setBobAnimation(12); - _vm->_objectsManager->setBobAnimation(13); + _vm->_objectsMan->setBobAnimation(5); + _vm->_objectsMan->setBobAnimation(7); + _vm->_objectsMan->setBobAnimation(8); + _vm->_objectsMan->setBobAnimation(9); + _vm->_objectsMan->setBobAnimation(12); + _vm->_objectsMan->setBobAnimation(13); break; } opcodeType = 1; @@ -2456,31 +2456,31 @@ int ScriptManager::handleOpcode(byte *dataP) { break; case MKTAG24('B', 'O', 'S'): opcodeType = 1; - _vm->_objectsManager->setBobOffset(READ_LE_INT16(dataP + 5), READ_LE_INT16(dataP + 7)); + _vm->_objectsMan->setBobOffset(READ_LE_INT16(dataP + 5), READ_LE_INT16(dataP + 7)); break; case MKTAG24('V', 'O', 'N'): - _vm->_objectsManager->enableVerb(READ_LE_INT16(dataP + 5), READ_LE_INT16(dataP + 7)); + _vm->_objectsMan->enableVerb(READ_LE_INT16(dataP + 5), READ_LE_INT16(dataP + 7)); opcodeType = 1; break; case MKTAG24('Z', 'C', 'H'): - _vm->_linesManager->_zone[READ_LE_INT16(dataP + 5)]._messageId = READ_LE_INT16(dataP + 7); + _vm->_linesMan->_zone[READ_LE_INT16(dataP + 5)]._messageId = READ_LE_INT16(dataP + 7); opcodeType = 1; break; case MKTAG24('J', 'U', 'M'): - _vm->_objectsManager->_jumpZone = READ_LE_INT16(dataP + 5); - _vm->_objectsManager->_jumpVerb = READ_LE_INT16(dataP + 7); + _vm->_objectsMan->_jumpZone = READ_LE_INT16(dataP + 5); + _vm->_objectsMan->_jumpVerb = READ_LE_INT16(dataP + 7); opcodeType = 6; break; case MKTAG24('S', 'O', 'U'): { int soundNum = READ_LE_INT16(dataP + 5); Common::String file = Common::String::format("SOUND%d.WAV", soundNum); - _vm->_soundManager->playSoundFile(file); + _vm->_soundMan->playSoundFile(file); opcodeType = 1; break; } case MKTAG24('V', 'O', 'F'): - _vm->_objectsManager->disableVerb(READ_LE_INT16(dataP + 5), READ_LE_INT16(dataP + 7)); + _vm->_objectsMan->disableVerb(READ_LE_INT16(dataP + 5), READ_LE_INT16(dataP + 7)); opcodeType = 1; break; case MKTAG24('I', 'I', 'F'): |