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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
|
#pragma once
#define VC_EXTRALEAN
#include <AFX.H>
// a terrible, terrible kludge
#ifndef DONT_INCLUDE_AFXTEMPL
#include <AFXTEMPL.H>
#endif
#include <AFXWIN.H>
#include <AFXCMN.H>
#include <MBSTRING.H>
#include <CRTDBG.H>
#include <MMSYSTEM.H>
#include <OBJBASE.H>
#include <dsound.h>
#include <dinput.h>
#include <math.h>
#ifdef __clang__
#undef AFX_CLASS_EXPORT
#undef AFX_API_EXPORT
#undef AFX_DATA_EXPORT
#define AFX_CLASS_EXPORT
#define AFX_API_EXPORT
#define AFX_DATA_EXPORT
#endif
class CEditWFocus;
class CFilePlugin;
class CFilePluginList;
class CLink;
class CObjectQueue;
class CPluginInfo;
class CPluginInfoArray;
class CProgramPlugin;
class CResFile;
class CResourcePlugin;
class CT2App;
class CTokenizer;
class CWave;
class DbgIPS;
class DbgStepRun;
class LArray;
class LArrayIterator;
class LAttachable;
class LAttachment;
class LBroadcaster;
class LListener;
class MoverSearchDlg;
class PeopleSearchDlg;
class SoundDlg;
class SpeedDlg;
class T2AdvertisePlugin;
class T2Archive;
class T2BitImage;
class T2BlackOut;
class T2ColdTableDef;
class T2CrossEquipArray;
class T2CtrlPalette;
class T2DateTime;
class T2DayLightFilter;
class T2DayParamDef;
class T2Dialog;
class T2DlgItem;
class T2DlgItemAllPurpose;
class T2DlgItemAnimation;
class T2DlgItemHScr;
class T2DlgItemVScr;
class T2DrawableObject;
class T2ElevatorModule;
class T2Equip;
class T2EquipDef;
class T2EquipPlugin;
class T2EquipPtrList;
class T2EventDialog;
class T2EventItem;
class T2Fire;
class T2FireAttach;
class T2FireBurning;
class T2FloorInfo;
class T2FloorNumberTable;
class T2FloorPtrList;
class T2GlobalData;
class T2GuestroomItem;
class T2GuestroomTable;
class T2HallEventItem;
class T2HallEventPlugin;
class T2HaveOutViewObject;
class T2Helicopter;
class T2ImageObj;
class T2InfoDialog;
class T2MainWindow;
class T2Maru_Reggae;
class T2Matter;
class T2MatterArray;
class T2MatterArrayList;
class T2MatterDef;
class T2Message;
class T2MetroRailway;
class T2Mover;
class T2MoverArray;
class T2MoverArrayList;
class T2MoverDef;
class T2MoverModule;
class T2MoverModuleList;
class T2MoverModuleTable;
class T2MoverPlugin;
class T2MoverRoutingTable;
class T2MovieParamArray;
class T2MoviePlugin;
class T2MoviePluginList;
class T2MsgWindow;
class T2MWControl;
class T2Name;
class T2NameList;
class T2Object;
class T2ObjectArray;
class T2ObjectArrayList;
class T2OptionPlugin;
class T2OptionPluginList;
class T2OutDeco;
class T2OutDecoration;
class T2OuterObjList;
class T2OutObj;
class T2OutObjArray;
class T2OutObjArrayList;
class T2OuterObjDef;
class T2OutsideInfo;
class T2PaletteAnime;
class T2PaletteAnimeDef;
class T2People;
class T2PeopleArray;
class T2PeopleArrayList;
class T2PeopleAnimeDef;
class T2PeopleAnimeDefElem;
class T2PeopleDef;
class T2PeopleDemandList;
class T2PeoplePtrList;
class T2PeopleTimeZoneList;
class T2PeopleType;
class T2PeopleTypeArray;
class T2PlaceParamDef;
class T2PluginLoader;
class T2PluginSpecifier;
class T2Pool;
class T2PoolDef;
class T2PoolDefDemandElem;
class T2PoolGradeDef;
class T2PoolTimeZoneDef;
class T2RegistedTenantDB;
class T2Request;
class T2RequestArray;
class T2RequestArrayList;
class T2RequestIDArray;
class T2ReturnStack;
class T2RouteCEArray;
class T2RouteNavigator;
class T2RoutingTable;
class T2RoutingTableElem;
class T2SantaClaus;
class T2SeasonParamDef;
class T2Settlement;
class T2SilhouetteDef;
class T2SoundObjItem;
class T2SoundObjItemList;
class T2SoundPlayer;
class T2Sprite;
class T2SpriteObj;
class T2StopInfoArray;
class T2SubPlugin;
class T2TemplatePlugin;
class T2TemplatePluginDB;
class T2TemplatePluginList;
class T2Tenant;
class T2TenantArray;
class T2TenantArrayList;
class T2TenantDef;
class T2TenantMemberDef;
class T2TenantMemberTableDef;
class T2TenantPlugin;
class T2ToolCallback;
class T2ToolDef;
class T2ToolDefDB;
class T2ToolDefList;
class T2ToolIconItem;
class T2ToolIconList;
class T2ToolPlugin;
class T2ToolWindow;
class T2TowerDoc;
class T2TowerEvent;
class T2TowerMainView;
class T2TowerMessage;
class T2TowerVision;
class T2TrafficInfo;
class T2Transport;
class T2TreasureDialog;
class T2TreasurePane;
class T2UnitInfo;
class T2WeatherFilter;
class T2WordDefArray;
class T2WorldDef;
class T2WorldPlugin;
class T2XEvent;
class TenantSearchDlg;
class WalkerDlg;
enum AREACHECKCODE {
AreaCheckCode_0,
AreaCheckCode_1,
AreaCheckCode_2
};
enum CURSORTYPE {
CursorType_0
};
enum MOUSEEVENT {
MouseEvent_0, // mouse down
MouseEvent_1, // mouse move
MouseEvent_2 // mouse up
};
enum OPTIONEVENTTYPE {
// Dispatched on each idle.
// Data: none
// Return value: ignored
kIdleOptionEvent,
// Dispatched when the left mouse button is pressed in the tower view.
// Data: CPoint* (in QD coordinates)
// Return value: FALSE will cancel normal processing
kLButtonDownOptionEvent,
// Dispatched when the right mouse button is pressed in the tower view.
// Data: CPoint* (in QD coordinates)
// Return value: FALSE will cancel normal processing
kRButtonDownOptionEvent,
// Dispatched when the left mouse button is released in the tower view.
// Data: CPoint* (in QD coordinates)
// Return value: FALSE will cancel normal processing
kLButtonUpOptionEvent,
// Dispatched when the right mouse button is released in the tower view.
// Data: CPoint* (in QD coordinates)
// Return value: ignored
kRButtonUpOptionEvent,
// Dispatched when the mouse is moved within the tower view.
// Data: POINT* (in QD coordinates)
// Return value: FALSE will cancel normal processing
kMouseMoveOptionEvent,
// Dispatched when plugins are about to be selected.
// Data: None
// Return value: ignored
kSelectPluginsOptionEvent,
OptionEventType_7,
OptionEventType_8,
// Dispatched when the tower has just been drawn to the buffer.
// Data: None
// Return value: ignored
kTowerDrawFinishedOptionEvent,
// Dispatched when the tower is about to be drawn to the main view.
// Data: CDC*
// Return value: FALSE will cancel normal drawing
kTowerPreDrawOptionEvent,
// Dispatched when interview words are about to be generated for a person.
// Data: OptionEvent11Data*
// Return value: FALSE will cancel the normal word selection process
kPreInterviewWordsOptionEvent,
// Dispatched when interview words have been generated for a person.
// Data: OptionEvent11Data*
// Return value: ignored
kPostInterviewWordsOptionEvent,
// Dispatched when all the option plugins have been loaded.
// Data: none
// Return value: ignored
kInitOptionEvent,
// Dispatched right before the tower is unloaded.
// Data: none
// Return value: ignored
kDestroyOptionEvent,
};
struct OptionEvent11Data {
T2People *people;
CString *str;
};
enum PARTCODE {
PartCode_0,
PartCode_1,
PartCode_2,
PartCode_3,
PartCode_4
};
enum PROCCODE {
ProcCode_0,
ProcCode_1,
ProcCode_2
};
enum ROOFANDFLOOR {
RoofAndFloor_None = 0,
RoofAndFloor_Roof = 1,
RoofAndFloor_Floor = 2,
RoofAndFloor_Both = 3,
};
enum SIDEOBJPATTERN {
SideObjPattern_0,
SideObjPattern_1
};
enum VIEWMODE {
kInView, // InView
kOutView, // OutView
kEvalView, // Eval
kPriceView, // Price
kMaintView, // Maint
kTransView, // Trans
ViewMode_6,
};
enum BOOL3 {
BOOL3_NEG1 = -1,
BOOL3_0 = 0,
BOOL3_1 = 1
};
enum EEquipPos {
EEquipPos_0,
EEquipPos_1,
EEquipPos_2,
EEquipPos_3
};
enum ERequestUpDown {
ERequestUpDown_0, // up?
ERequestUpDown_1 // down?
};
struct BkgndInfo;
struct T2RoofInfo; // not sure if this is a struct or a class
struct T2TreasureStatus {
int _0;
char text[256];
int animID1;
int animID2;
};
struct Point {
int v;
int h;
};
struct SDimension16 {
short height;
short width;
};
struct TableCellT {
UINT row;
UINT col;
};
enum {
DrawMode0 = 0,
DrawMode1,
DrawMode2,
DrawMode3,
DrawMode4
};
#ifdef _MSC_VER
#define MSVC_STDCALL __stdcall
#else
#define MSVC_STDCALL
#endif
#ifdef ATOI_KLUDGE
// why is this necessary?
inline int MSVC_STDCALL my_atoi(const char *s) {
int v = 0;
while (*s && *s >= '0' && *s <= '9') {
v = (v * 10) + (*s - '0');
s++;
}
return v;
}
#define atoi my_atoi
#endif
|