2005-05-08 03:08:11 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2005 The ScummVM project
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include "scumm/intern.h"
|
|
|
|
|
|
|
|
namespace Scumm {
|
|
|
|
|
|
|
|
class LogicHE {
|
2005-05-10 22:31:48 +00:00
|
|
|
public:
|
2005-05-08 03:08:11 +00:00
|
|
|
float *_userData;
|
2005-05-09 02:30:31 +00:00
|
|
|
double *_userDataD;
|
2005-05-08 03:08:11 +00:00
|
|
|
ScummEngine *_vm;
|
|
|
|
|
|
|
|
LogicHE(ScummEngine *vm);
|
2005-05-10 22:31:48 +00:00
|
|
|
virtual ~LogicHE();
|
|
|
|
|
|
|
|
void writeScummVar(int var, int32 value) { _vm->writeVar(var, value); }
|
|
|
|
|
|
|
|
void beforeBootScript(void) {};
|
|
|
|
void initOnce() {};
|
|
|
|
void startOfFrame() {};
|
|
|
|
void endOfFrame() {};
|
|
|
|
virtual int versionID();
|
|
|
|
virtual int32 dispatch(int op, int numArgs, int32 *args);
|
|
|
|
};
|
|
|
|
|
|
|
|
class LogicHErace : public LogicHE {
|
|
|
|
public:
|
|
|
|
LogicHErace(ScummEngine *vm) : LogicHE(vm) {}
|
2005-05-08 03:08:11 +00:00
|
|
|
|
|
|
|
int versionID();
|
|
|
|
int32 dispatch(int op, int numArgs, int32 *args);
|
|
|
|
|
|
|
|
private:
|
2005-05-10 22:31:48 +00:00
|
|
|
int checkShape(int arg_0, int arg_4, int arg_8, int arg_C, int arg_10, int arg_14, int arg_18, int arg_1C, int arg_20, int arg_24);
|
|
|
|
|
2005-05-08 03:08:11 +00:00
|
|
|
int32 op_1003(int32 *args);
|
|
|
|
int32 op_1004(int32 *args);
|
|
|
|
int32 op_1100(int32 *args);
|
|
|
|
int32 op_1101(int32 *args);
|
|
|
|
int32 op_1102(int32 *args);
|
|
|
|
int32 op_1103(int32 *args);
|
|
|
|
int32 op_1110();
|
|
|
|
int32 op_1120(int32 *args);
|
|
|
|
int32 op_1130(int32 *args);
|
|
|
|
int32 op_1140(int32 *args);
|
|
|
|
|
|
|
|
void op_sub1(float arg);
|
|
|
|
void op_sub2(float arg);
|
|
|
|
void op_sub3(float arg);
|
|
|
|
};
|
|
|
|
|
2005-05-10 22:31:48 +00:00
|
|
|
class LogicHEfunshop : public LogicHE {
|
|
|
|
public:
|
|
|
|
LogicHEfunshop(ScummEngine *vm) : LogicHE(vm) {}
|
|
|
|
|
|
|
|
int versionID();
|
|
|
|
int32 dispatch(int op, int numArgs, int32 *args);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void op_1004(int32 *args);
|
|
|
|
void op_1005(int32 *args);
|
|
|
|
int checkShape(int arg_0, int arg_4, int arg_8, int arg_C, int arg_10, int arg_14, int arg_18, int arg_1C, int arg_20, int arg_24);
|
|
|
|
};
|
|
|
|
|
2005-05-08 03:08:11 +00:00
|
|
|
} // End of namespace Scumm
|