1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #include "common/endian.h"
24 
25 #include "gob/gob.h"
26 #include "gob/inter.h"
27 #include "gob/game.h"
28 #include "gob/script.h"
29 
30 namespace Gob {
31 
32 #define OPCODEVER Inter_Inca2
33 #define OPCODEDRAW(i, x)  _opcodesDraw[i]._OPCODEDRAW(OPCODEVER, x)
34 #define OPCODEFUNC(i, x)  _opcodesFunc[i]._OPCODEFUNC(OPCODEVER, x)
35 #define OPCODEGOB(i, x)   _opcodesGob[i]._OPCODEGOB(OPCODEVER, x)
36 
Inter_Inca2(GobEngine * vm)37 Inter_Inca2::Inter_Inca2(GobEngine *vm) : Inter_v3(vm) {
38 }
39 
setupOpcodesDraw()40 void Inter_Inca2::setupOpcodesDraw() {
41 	Inter_v3::setupOpcodesDraw();
42 }
43 
setupOpcodesFunc()44 void Inter_Inca2::setupOpcodesFunc() {
45 	Inter_v3::setupOpcodesFunc();
46 
47 	OPCODEFUNC(0x25, oInca2_spaceShooter);
48 }
49 
setupOpcodesGob()50 void Inter_Inca2::setupOpcodesGob() {
51 }
52 
oInca2_spaceShooter(OpFuncParams & params)53 void Inter_Inca2::oInca2_spaceShooter(OpFuncParams &params) {
54 	// TODO: Not yet implemented. We'll pretend we won the match for now
55 	_vm->_game->_script->skip(4);
56 	uint16 resVar = _vm->_game->_script->readUint16();
57 	_vm->_game->_script->skip(4);
58 
59 	WRITE_VAR(resVar, 1);
60 }
61 
62 } // End of namespace Gob
63