void AGOSEngine_PN::opn_opcode52() { int32 mode = varval(); if (mode == 1) { setWindowImage(mode, varval(), true); } else { setWindowImageEx(mode, varval()); } setScriptReturn(true); }
// Personal Nightmare specific void AGOSEngine::restoreMenu() { _wiped = 0; _videoLockOut |= 0x80; clearVideoWindow(3, 0); uint16 oldWindowNum = _windowNum; setWindowImage(1, 1); setWindowImage(2, 2); drawEdging(); _windowNum = oldWindowNum; _videoLockOut |= 0x20; _videoLockOut &= ~0x80; }
Common::Error AGOSEngine::go() { #ifdef ENABLE_AGOS2 loadArchives(); #endif loadGamePcFile(); addTimeEvent(0, 1); if (getFileName(GAME_GMEFILE) != NULL) { openGameFile(); } if (getGameType() == GType_FF) { loadIconData(); } else if (getFileName(GAME_ICONFILE) != NULL) { loadIconFile(); } if (getFileName(GAME_MENUFILE) != NULL) { loadMenuFile(); } vc34_setMouseOff(); if (getGameType() != GType_PP && getGameType() != GType_FF) { uint16 count = (getGameType() == GType_SIMON2) ? 5 : _frameCount; addVgaEvent(count, ANIMATE_INT, NULL, 0, 0); } if (getGameType() == GType_ELVIRA1 && getPlatform() == Common::kPlatformAtariST && (getFeatures() & GF_DEMO)) { setWindowImage(3, 9900); while (!shouldQuit()) delay(0); } if (getGameType() == GType_ELVIRA1 && getPlatform() == Common::kPlatformAmiga && (getFeatures() & GF_DEMO)) { playMusic(0, 0); } runSubroutine101(); permitInput(); while (!shouldQuit()) { waitForInput(); handleVerbClicked(_verbHitArea); delay(100); } return Common::kNoError; }
void AGOSEngine_PuzzlePack::opp_restoreOopsPosition() { // 32: restore oops position uint i; getNextWord(); getNextWord(); if (_oopsValid) { for (i = 0; i < _numVars; i++) { _variableArray[i] = _variableArray2[i]; } i = _variableArray[999] * 100 + 11; setWindowImage(4,i); _gameTime += 10; // Swampy adventures if (!getBitFlag(110)) _gameTime += 20; _oopsValid = false; } }
void AGOSEngine_PN::opn_opcode62() { int32 zoneNum = varval(); _videoLockOut |= 0x80; vc29_stopAllSounds(); _hitCalled = 0; _oneClick = 0; loadZone(zoneNum); setWindowImage(2, 2); _copyScnFlag = 0; _vgaSpriteChanged = 0; _videoLockOut &= ~0x80; setScriptReturn(true); }