aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/various.h
blob: 3121f35806a22afa98c565599e2e292b6616e54c (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* ScummVM - Scumm Interpreter
 * Copyright (C) 2006 The ScummVM project
 *
 * cinE Engine is (C) 2004-2005 by CinE Team
 *
 * 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.
 *
 * $URL$
 * $Id$
 *
 */

#ifndef CINE_VARIOUS_H_
#define CINE_VARIOUS_H_

#include "cine/cine.h"

extern int gameType;

typedef char commandeType[20];

int16 makeMenuChoice(const commandeType commandList[], uint16 height, uint16 X, uint16 Y,
    uint16 width);
int16 makeMenuChoice2(const commandeType commandList[], uint16 height, uint16 X, uint16 Y,
    uint16 width);

extern int16 allowSystemMenu;

typedef struct {
	uint8 *ptr;
	uint16 len;
} unk1Struct;

#define NUM_MAX_MESSAGE 255

extern unk1Struct messageTable[NUM_MAX_MESSAGE];

struct unkListElementStruct {
	struct unkListElementStruct *next;
	int16 var4;
	int16 var6;
	int16 var8;
	int16 varA;
	int16 varC;
	int16 varE;
	int16 var10;
	int16 var12;
	int16 var14;
	int16 var16;
	int16 var18;
	int16 var1A;
	int16 var1C;
	int16 var1E;
};

typedef struct unkListElementStruct unkListElementStruct;

extern unkListElementStruct unkList;

extern uint32 var6;
extern uint32 var8;
extern uint8 *var9;

extern uint16 var2;
extern uint16 var3;
extern uint16 var4;
extern uint16 var5;

extern Common::File palFileHandle;
extern Common::File partFileHandle;

void processPendingUpdates(int16 param);
void closeEngine3(void);
void mainLoopSub1(void);
void mainLoopSub2(uint16 param1, uint16 param2, uint16 param3, uint16 param4);

extern uint16 errorVar;
extern uint8 menuVar;

void gfxFuncGen1(uint8 *param1, uint8 *param2, uint8 *param3, uint8 *param4,
    int16 param5);

extern uint8 *page0;
extern uint8 *page0c;

void ptrGfxFunc13(void);
void gfxFuncGen2(void);

extern uint16 allowPlayerInput;

extern uint16 checkForPendingDataLoadSwitch;

extern uint16 fadeRequired;
extern uint16 isDrawCommandEnabled;
extern uint16 waitForPlayerClick;
extern uint16 var16;
extern uint16 var17;
extern uint16 var18;
extern uint16 var19;
extern uint16 var20;
extern uint8 var21;

extern int16 playerCommand;

extern char commandBuffer[80];

extern uint16 c_palette[256];

extern char currentPrcName[20];
extern char currentRelName[20];
extern char currentObjectName[20];
extern char currentMsgName[20];
extern char newPrcName[20];
extern char newRelName[20];
extern char newObjectName[20];
extern char newMsgName[20];

extern char currentBgName[8][15];
extern char currentCtName[15];
extern char currentPartName[15];

void stopSample(void);
void mainLoopSub3(void);
uint16 executePlayerInput(void);

void drawOverlays(void);
void flip(void);

extern uint16 mouseUpdateStatus;
extern uint16 dummyU16;

void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY);

uint16 processKeyboard(uint16 param);

void mainLoopSub6(void);

void checkForPendingDataLoad(void);

extern uint16 exitEngine;

void hideMouse(void);
void closeEngine7(void);

extern uint16 var22;

void removeExtention(char *dest, const char *source);

struct selectedObjStruct {
	int16 idx;
	int16 param;
};

typedef struct selectedObjStruct selectedObjStruct;

extern uint16 defaultMenuBoxColor;
extern uint16 defaultMenuBoxColor2;

#define NUM_MAX_ZONE 16
extern uint16 zoneData[NUM_MAX_ZONE];

void addMessage(uint8 param1, int16 param2, int16 param3, int16 param4, int16 param5);

void blitScreen(uint8 *frontBuffer, uint8 *backbuffer);

struct mouseStatusStruct {
	int left;
	int right;
	int X;
	int Y;
};

typedef struct mouseStatusStruct mouseStatusStruct;

extern int16 additionalBgVScroll;

void addUnkListElement(int16 param0, int16 param1, int16 param2, int16 param3,
    int16 param4, int16 param5, int16 param6, int16 param7, int16 param8);
void resetUnkList();
void processUnkList(void);
#endif