blob: f74c6a81f6f976197c6ac0871447279b191490f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/* ScummVM - Scumm Interpreter
* Copyright (C) 2004 Ivan Dubrov
* Copyright (C) 2004-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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* $Header$
*
*/
#ifndef GOB_INTERPRET_H
#define GOB_INTERPRET_H
namespace Gob {
class Inter {
public:
int16 animPalLowIndex;
int16 animPalHighIndex;
int16 animPalDir;
uint32 soundEndTimeKey;
int16 soundStopVal;
char terminate;
char breakFlag;
int16 *breakFromLevel;
int16 *nestLevel;
int16 load16(void);
int16 peek16(char *ptr);
int32 peek32(char *ptr);
void setMousePos(void);
char evalExpr(int16 *pRes);
char evalBoolResult(void);
void storeResult(void);
void printText(void);
void animPalette(void);
void animPalInit(void);
void loadMult(void);
void playMult(void);
void freeMult(void);
void initCursor(void);
void initCursorAnim(void);
void clearCursorAnim(void);
void drawOperations(void);
void getFreeMem(void);
void manageDataFile(void);
void writeData(void);
void checkData(void);
void readData(void);
void loadFont(void);
void freeFont(void);
void prepareStr(void);
void insertStr(void);
void cutStr(void);
void strstr(void);
void setFrameRate(void);
void istrlen(void);
void strToLong(void);
void invalidate(void);
void loadSpriteContent(void);
void copySprite(void);
void putPixel(void);
void fillRect(void);
void drawLine(void);
void createSprite(void);
void freeSprite(void);
void renewTimeInVars(void);
void playComposition(void);
void stopSound(void);
void playSound(void);
void loadCursor(void);
void loadSpriteToPos(void);
void funcBlock(int16 retFlag);
void loadTot(void);
void storeKey(int16 key);
void keyFunc(void);
void checkSwitchTable(char **ppExec);
void repeatUntil(void);
void whileDo(void);
void callSub(int16 retFlag);
void initControlVars(void);
Inter(GobEngine *vm);
protected:
GobEngine *_vm;
void evaluateStore(void);
void capturePush(void);
void capturePop(void);
};
} // End of namespace Gob
#endif
|