diff options
author | Travis Howell | 2005-10-05 12:16:49 +0000 |
---|---|---|
committer | Travis Howell | 2005-10-05 12:16:49 +0000 |
commit | e748cccca6d51f832397f8d4ce33ebc25adc12c4 (patch) | |
tree | 7b126716035f42a3d3f437a4a49a3bfc79136bc1 | |
parent | 05ea6d3a34ba3bb81c6e72cc6ace6603b4018118 (diff) | |
download | scummvm-rg350-e748cccca6d51f832397f8d4ce33ebc25adc12c4.tar.gz scummvm-rg350-e748cccca6d51f832397f8d4ce33ebc25adc12c4.tar.bz2 scummvm-rg350-e748cccca6d51f832397f8d4ce33ebc25adc12c4.zip |
Cleanup
svn-id: r18941
-rw-r--r-- | simon/simon.cpp | 6 | ||||
-rw-r--r-- | simon/simon.h | 18 | ||||
-rw-r--r-- | simon/vga.cpp | 54 |
3 files changed, 39 insertions, 39 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 0223880e4b..e72ea3ac5d 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -2694,11 +2694,11 @@ void SimonEngine::o_force_unlock() { void SimonEngine::o_force_lock() { if (_game & GF_SIMON2) { _lockWord |= 0x8000; - vc34_forceLock(); + vc34_setMouseOff(); _lockWord &= ~0x8000; } else { _lockWord |= 0x4000; - vc34_forceLock(); + vc34_setMouseOff(); _lockWord &= ~0x4000; } } @@ -3817,7 +3817,7 @@ void SimonEngine::openGameFile() { loadIconFile(); - vc34_forceLock(); + vc34_setMouseOff(); runSubroutine101(); startUp_helper_2(); diff --git a/simon/simon.h b/simon/simon.h index 8f9cf34c04..5d50b4c90a 100644 --- a/simon/simon.h +++ b/simon/simon.h @@ -612,10 +612,10 @@ protected: public: // Simon1/Simon2 video script opcodes - void vc1_dummy_op(); + void vc1_fadeOut(); void vc2_call(); void vc3_loadSprite(); - void vc4_dummy_op(); + void vc4_fadeIn(); void vc5_skip_if_neq(); void vc6_skip_ifn_sib_with_a(); void vc7_skip_if_sib_with_a(); @@ -631,23 +631,23 @@ public: void vc17_setPathfinderItem(); void vc18_jump(); void vc19_chain_to_script(); - void vc20_set_code_word(); - void vc21_jump_if_code_word(); + void vc20_setRepeat(); + void vc21_endRepeat(); void vc22_setSpritePalette(); void vc23_setSpritePriority(); void vc24_setSpriteXY(); void vc25_halt_sprite(); - void vc26_setWindow(); + void vc26_setSubWindow(); void vc27_resetSprite(); void vc28_dummy_op(); void vc29_stopAllSounds(); void vc30_setFrameRate(); void vc31_setWindow(); void vc32_copyVar(); - void vc33_forceUnlock(); - void vc34_forceLock(); - void vc35(); - void vc36_saveLoadDialog(); + void vc33_setMouseOn(); + void vc34_setMouseOff(); + void vc35_clearWindow(); + void vc36_setWindowImage(); void vc37_addToSpriteY(); void vc38_skipIfVarZero(); void vc39_setVar(); diff --git a/simon/vga.cpp b/simon/vga.cpp index e50b26e3c1..937da0b117 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -34,10 +34,10 @@ typedef void (SimonEngine::*VgaOpcodeProc) (); // Opcode tables static const VgaOpcodeProc vga_opcode_table[] = { NULL, - &SimonEngine::vc1_dummy_op, + &SimonEngine::vc1_fadeOut, &SimonEngine::vc2_call, &SimonEngine::vc3_loadSprite, - &SimonEngine::vc4_dummy_op, + &SimonEngine::vc4_fadeIn, &SimonEngine::vc5_skip_if_neq, &SimonEngine::vc6_skip_ifn_sib_with_a, &SimonEngine::vc7_skip_if_sib_with_a, @@ -53,23 +53,23 @@ static const VgaOpcodeProc vga_opcode_table[] = { &SimonEngine::vc17_setPathfinderItem, &SimonEngine::vc18_jump, &SimonEngine::vc19_chain_to_script, - &SimonEngine::vc20_set_code_word, - &SimonEngine::vc21_jump_if_code_word, + &SimonEngine::vc20_setRepeat, + &SimonEngine::vc21_endRepeat, &SimonEngine::vc22_setSpritePalette, &SimonEngine::vc23_setSpritePriority, &SimonEngine::vc24_setSpriteXY, &SimonEngine::vc25_halt_sprite, - &SimonEngine::vc26_setWindow, + &SimonEngine::vc26_setSubWindow, &SimonEngine::vc27_resetSprite, &SimonEngine::vc28_dummy_op, &SimonEngine::vc29_stopAllSounds, &SimonEngine::vc30_setFrameRate, &SimonEngine::vc31_setWindow, &SimonEngine::vc32_copyVar, - &SimonEngine::vc33_forceUnlock, - &SimonEngine::vc34_forceLock, - &SimonEngine::vc35, - &SimonEngine::vc36_saveLoadDialog, + &SimonEngine::vc33_setMouseOn, + &SimonEngine::vc34_setMouseOff, + &SimonEngine::vc35_clearWindow, + &SimonEngine::vc36_setWindowImage, &SimonEngine::vc37_addToSpriteY, &SimonEngine::vc38_skipIfVarZero, &SimonEngine::vc39_setVar, @@ -214,7 +214,7 @@ void SimonEngine::o_read_vgares_328() { } // VGA Script commands -void SimonEngine::vc1_dummy_op() { +void SimonEngine::vc1_fadeOut() { /* dummy opcode */ _vcPtr += 6; } @@ -356,7 +356,7 @@ void SimonEngine::vc3_loadSprite() { _curVgaFile1 = old_file_1; } -void SimonEngine::vc4_dummy_op() { +void SimonEngine::vc4_fadeIn() { /* dummy opcode */ _vcPtr += 6; } @@ -1100,7 +1100,7 @@ void SimonEngine::vc19_chain_to_script() { /* helper routines */ -void SimonEngine::vc20_set_code_word() { +void SimonEngine::vc20_setRepeat() { /* FIXME: This opcode is somewhat strange: it first reads a BE word from * the script (advancing the script pointer in doing so); then it writes * back the same word, this time as LE, into the script. @@ -1110,7 +1110,7 @@ void SimonEngine::vc20_set_code_word() { _vcPtr += 2; } -void SimonEngine::vc21_jump_if_code_word() { +void SimonEngine::vc21_endRepeat() { int16 a = vc_read_next_word(); const byte *tmp = _vcPtr + a; if (_game & GF_SIMON2) @@ -1211,12 +1211,12 @@ void SimonEngine::vc25_halt_sprite() { _vgaSpriteChanged++; } -void SimonEngine::vc26_setWindow() { - uint16 *as = &_video_windows[vc_read_next_word() * 4]; - as[0] = vc_read_next_word(); - as[1] = vc_read_next_word(); - as[2] = vc_read_next_word(); - as[3] = vc_read_next_word(); +void SimonEngine::vc26_setSubWindow() { + uint16 *as = &_video_windows[vc_read_next_word() * 4]; // number + as[0] = vc_read_next_word(); // x + as[1] = vc_read_next_word(); // y + as[2] = vc_read_next_word(); // width + as[3] = vc_read_next_word(); // height } void SimonEngine::vc27_resetSprite() { @@ -1295,38 +1295,38 @@ void SimonEngine::vc32_copyVar() { vc_write_var(vc_read_next_word(), a); } -void SimonEngine::vc33_forceUnlock() { +void SimonEngine::vc33_setMouseOn() { if (_lockCounter != 0) { _lockCounter = 1; unlock(); } } -void SimonEngine::vc34_forceLock() { +void SimonEngine::vc34_setMouseOff() { lock(); _lockCounter = 200; _leftButtonDown = 0; } -void SimonEngine::vc35() { +void SimonEngine::vc35_clearWindow() { /* unused */ _vcPtr += 4; _vgaSpriteChanged++; } -void SimonEngine::vc36_saveLoadDialog() { +void SimonEngine::vc36_setWindowImage() { _videoVar8 = false; uint vga_res = vc_read_next_word(); - uint mode = vc_read_next_word(); + uint windowNum = vc_read_next_word(); if (_game & GF_SIMON1) { - if (mode == 16) { + if (windowNum == 16) { _copyPartialMode = 2; } else { - set_video_mode_internal(mode, vga_res); + set_video_mode_internal(windowNum, vga_res); } } else { - set_video_mode_internal(mode, vga_res); + set_video_mode_internal(windowNum, vga_res); } } |