diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/gob.cpp | 2 | ||||
-rw-r--r-- | engines/gob/inter.h | 32 | ||||
-rw-r--r-- | engines/gob/inter_v4.cpp (renamed from engines/gob/inter_woodruff.cpp) | 50 | ||||
-rw-r--r-- | engines/gob/module.mk | 4 |
4 files changed, 44 insertions, 44 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp index 8c3bb76413..c996b5e8d3 100644 --- a/engines/gob/gob.cpp +++ b/engines/gob/gob.cpp @@ -306,7 +306,7 @@ bool GobEngine::initGameParts() { case kGameTypeWoodruff: _init = new Init_v3(this); _video = new Video_v2(this); - _inter = new Inter_Woodruff(this); + _inter = new Inter_v4(this); _parse = new Parse_v2(this); _mult = new Mult_v2(this); _draw = new Draw_v2(this); diff --git a/engines/gob/inter.h b/engines/gob/inter.h index 70e0af2d4d..59a1ba3ccc 100644 --- a/engines/gob/inter.h +++ b/engines/gob/inter.h @@ -481,30 +481,30 @@ protected: bool o3_writeData(OpFuncParams ¶ms); }; -class Inter_Woodruff : public Inter_v3 { +class Inter_v4 : public Inter_v3 { public: - Inter_Woodruff(GobEngine *vm); - virtual ~Inter_Woodruff() {} + Inter_v4(GobEngine *vm); + virtual ~Inter_v4() {} protected: - typedef void (Inter_Woodruff::*OpcodeDrawProcWoodruff)(); - typedef bool (Inter_Woodruff::*OpcodeFuncProcWoodruff)(OpFuncParams &); - typedef void (Inter_Woodruff::*OpcodeGoblinProcWoodruff)(OpGobParams &); - struct OpcodeDrawEntryWoodruff { - OpcodeDrawProcWoodruff proc; + typedef void (Inter_v4::*OpcodeDrawProcV4)(); + typedef bool (Inter_v4::*OpcodeFuncProcV4)(OpFuncParams &); + typedef void (Inter_v4::*OpcodeGoblinProcV4)(OpGobParams &); + struct OpcodeDrawEntryV4 { + OpcodeDrawProcV4 proc; const char *desc; }; - struct OpcodeFuncEntryWoodruff { - OpcodeFuncProcWoodruff proc; + struct OpcodeFuncEntryV4 { + OpcodeFuncProcV4 proc; const char *desc; }; - struct OpcodeGoblinEntryWoodruff { - OpcodeGoblinProcWoodruff proc; + struct OpcodeGoblinEntryV4 { + OpcodeGoblinProcV4 proc; const char *desc; }; - const OpcodeDrawEntryWoodruff *_opcodesDrawWoodruff; - const OpcodeFuncEntryWoodruff *_opcodesFuncWoodruff; - const OpcodeGoblinEntryWoodruff *_opcodesGoblinWoodruff; + const OpcodeDrawEntryV4 *_opcodesDrawV4; + const OpcodeFuncEntryV4 *_opcodesFuncV4; + const OpcodeGoblinEntryV4 *_opcodesGoblinV4; static const int _goblinFuncLookUp[][2]; virtual void setupOpcodes(); @@ -515,7 +515,7 @@ protected: virtual const char *getOpcodeFuncDesc(byte i, byte j); virtual const char *getOpcodeGoblinDesc(int i); - bool oWoodruff_stub0x18(OpFuncParams ¶ms); + bool o4_stub0x18(OpFuncParams ¶ms); }; } // End of namespace Gob diff --git a/engines/gob/inter_woodruff.cpp b/engines/gob/inter_v4.cpp index d1989c41d7..02b6927f3b 100644 --- a/engines/gob/inter_woodruff.cpp +++ b/engines/gob/inter_v4.cpp @@ -37,9 +37,9 @@ namespace Gob { -#define OPCODE(x) _OPCODE(Inter_Woodruff, x) +#define OPCODE(x) _OPCODE(Inter_v4, x) -const int Inter_Woodruff::_goblinFuncLookUp[][2] = { +const int Inter_v4::_goblinFuncLookUp[][2] = { {0, 0}, {1, 1}, {2, 2}, @@ -113,12 +113,12 @@ const int Inter_Woodruff::_goblinFuncLookUp[][2] = { {2005, 70} }; -Inter_Woodruff::Inter_Woodruff(GobEngine *vm) : Inter_v3(vm) { +Inter_v4::Inter_v4(GobEngine *vm) : Inter_v3(vm) { setupOpcodes(); } -void Inter_Woodruff::setupOpcodes() { - static const OpcodeDrawEntryWoodruff opcodesDraw[256] = { +void Inter_v4::setupOpcodes() { + static const OpcodeDrawEntryV4 opcodesDraw[256] = { /* 00 */ OPCODE(o1_loadMult), OPCODE(o2_playMult), @@ -441,7 +441,7 @@ void Inter_Woodruff::setupOpcodes() { {NULL, ""} }; - static const OpcodeFuncEntryWoodruff opcodesFunc[80] = { + static const OpcodeFuncEntryV4 opcodesFunc[80] = { /* 00 */ OPCODE(o1_callSub), OPCODE(o1_callSub), @@ -473,7 +473,7 @@ void Inter_Woodruff::setupOpcodes() { OPCODE(o1_capturePop), OPCODE(o2_animPalInit), /* 18 */ - OPCODE(oWoodruff_stub0x18), + OPCODE(o4_stub0x18), {NULL, ""}, OPCODE(o3_getTotTextItemPart), {NULL, ""}, @@ -544,7 +544,7 @@ void Inter_Woodruff::setupOpcodes() { OPCODE(o1_manageDataFile), }; - static const OpcodeGoblinEntryWoodruff opcodesGoblin[71] = { + static const OpcodeGoblinEntryV4 opcodesGoblin[71] = { /* 00 */ OPCODE(o2_loadInfogramesIns), OPCODE(o2_startInfogrames), @@ -636,16 +636,16 @@ void Inter_Woodruff::setupOpcodes() { {NULL, ""}, }; - _opcodesDrawWoodruff = opcodesDraw; - _opcodesFuncWoodruff = opcodesFunc; - _opcodesGoblinWoodruff = opcodesGoblin; + _opcodesDrawV4 = opcodesDraw; + _opcodesFuncV4 = opcodesFunc; + _opcodesGoblinV4 = opcodesGoblin; } -void Inter_Woodruff::executeDrawOpcode(byte i) { +void Inter_v4::executeDrawOpcode(byte i) { debugC(1, kDebugDrawOp, "opcodeDraw %d [0x%X] (%s)", i, i, getOpcodeDrawDesc(i)); - OpcodeDrawProcWoodruff op = _opcodesDrawWoodruff[i].proc; + OpcodeDrawProcV4 op = _opcodesDrawV4[i].proc; if (op == NULL) warning("unimplemented opcodeDraw: %d", i); @@ -653,7 +653,7 @@ void Inter_Woodruff::executeDrawOpcode(byte i) { (this->*op) (); } -bool Inter_Woodruff::executeFuncOpcode(byte i, byte j, OpFuncParams ¶ms) { +bool Inter_v4::executeFuncOpcode(byte i, byte j, OpFuncParams ¶ms) { debugC(1, kDebugFuncOp, "opcodeFunc %d.%d [0x%X.0x%X] (%s)", i, j, i, j, getOpcodeFuncDesc(i, j)); @@ -662,7 +662,7 @@ bool Inter_Woodruff::executeFuncOpcode(byte i, byte j, OpFuncParams ¶ms) { return false; } - OpcodeFuncProcWoodruff op = _opcodesFuncWoodruff[i*16 + j].proc; + OpcodeFuncProcV4 op = _opcodesFuncV4[i*16 + j].proc; if (op == NULL) warning("unimplemented opcodeFunc: %d.%d", i, j); @@ -672,15 +672,15 @@ bool Inter_Woodruff::executeFuncOpcode(byte i, byte j, OpFuncParams ¶ms) { return false; } -void Inter_Woodruff::executeGoblinOpcode(int i, OpGobParams ¶ms) { +void Inter_v4::executeGoblinOpcode(int i, OpGobParams ¶ms) { debugC(1, kDebugGobOp, "opcodeGoblin %d [0x%X] (%s)", i, i, getOpcodeGoblinDesc(i)); - OpcodeGoblinProcWoodruff op = NULL; + OpcodeGoblinProcV4 op = NULL; for (int j = 0; j < ARRAYSIZE(_goblinFuncLookUp); j++) if (_goblinFuncLookUp[j][0] == i) { - op = _opcodesGoblinWoodruff[_goblinFuncLookUp[j][1]].proc; + op = _opcodesGoblinV4[_goblinFuncLookUp[j][1]].proc; break; } @@ -694,25 +694,25 @@ void Inter_Woodruff::executeGoblinOpcode(int i, OpGobParams ¶ms) { (this->*op) (params); } -const char *Inter_Woodruff::getOpcodeDrawDesc(byte i) { - return _opcodesDrawWoodruff[i].desc; +const char *Inter_v4::getOpcodeDrawDesc(byte i) { + return _opcodesDrawV4[i].desc; } -const char *Inter_Woodruff::getOpcodeFuncDesc(byte i, byte j) { +const char *Inter_v4::getOpcodeFuncDesc(byte i, byte j) { if ((i > 4) || (j > 15)) return ""; - return _opcodesFuncWoodruff[i*16 + j].desc; + return _opcodesFuncV4[i*16 + j].desc; } -const char *Inter_Woodruff::getOpcodeGoblinDesc(int i) { +const char *Inter_v4::getOpcodeGoblinDesc(int i) { for (int j = 0; j < ARRAYSIZE(_goblinFuncLookUp); j++) if (_goblinFuncLookUp[j][0] == i) - return _opcodesGoblinWoodruff[_goblinFuncLookUp[j][1]].desc; + return _opcodesGoblinV4[_goblinFuncLookUp[j][1]].desc; return ""; } -bool Inter_Woodruff::oWoodruff_stub0x18(OpFuncParams ¶ms) { +bool Inter_v4::o4_stub0x18(OpFuncParams ¶ms) { int16 val1 = _vm->_parse->parseValExpr(); int16 val2 = _vm->_parse->parseValExpr(); int16 val3 = _vm->_parse->parseValExpr(); diff --git a/engines/gob/module.mk b/engines/gob/module.mk index 7d90da6260..6c9a8d4b3e 100644 --- a/engines/gob/module.mk +++ b/engines/gob/module.mk @@ -26,9 +26,9 @@ MODULE_OBJS := \ inter.o \ inter_v1.o \ inter_v2.o \ - inter_woodruff.o \ - inter_v3.o \ inter_bargon.o \ + inter_v3.o \ + inter_v4.o \ map.o \ map_v1.o \ map_v2.o \ |