/
main.h
94 lines (78 loc) · 3.44 KB
/
main.h
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
/* ResidualVM - A 3D game interpreter
*
* ResidualVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the AUTHORS
* file distributed with this source distribution.
*
* 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.
*
*/
#ifndef _MAIN_
#define _MAIN_
namespace Fitd {
struct hqrEntryStruct;
extern int input5;
void menuWaitVSync();
void printTextSub5(int x, int y, int param, char *gfx);
void flipScreen();
void loadFloor(int floorNumber);
void loadRoom(int roomNumber);
void updateInHand(int objIdx);
void setupCamera();
void checkIfCameraChangeIsRequired(void);
void updateAllActorAndObjects();
void createActorList();
void mainDraw(int mode);
void getZvNormal(char *bodyPtr, ZVStruct *zvPtr);
int checkForHardCol(ZVStruct *zvPtr, roomDataStruct *pRoomData);
void walkStep(int angle1, int angle2, int angle3);
void throwStoppedAt(int x, int z);
void initEngine(void);
void initVars();
void configureHqrHero(hqrEntryStruct *hqrPtr, const char *name);
void flushScreen(void);
int parseAllSaves(int arg);
void cleanupAndExit(void);
void drawProjectedBox(int x1, int x2, int y1, int y2, int z1, int z2, int color, int transparency);
void printTextSub6(hqrEntryStruct *hqrPtr, int index);
extern char scaledScreen[640*400];
void sysInit(void);
void freeAll(void);
void startGame(int startupEtage, int startupRoom, int allowSystemMenu);
void fillBox(int x1, int y1, int x2, int y2, char color); // fast recode. No RE
void copyZv(ZVStruct *source, ZVStruct *dest);
void getZvRelativePosition(ZVStruct *zvPtr, int startRoom, int destRoom);
void take(int objIdx);
void foundObject(int objIdx, int param);
void hit(int animNumber, int arg_2, int arg_4, int arg_6, int hitForce, int arg_A);
int checkZvCollision(ZVStruct *zvPtr1, ZVStruct *zvPtr2);
void getZvCube(char *bodyPtr, ZVStruct *zvPtr);
void putAt(int objIdx, int objIdxToPutAt);
void setClipSize(int left, int top, int right, int bottom);
///
int printText(int index, int left, int top, int right, int bottom, int mode, int color);
void setupSMCode(int centerX, int centerY, int x, int y, int z);
void setupPointTransformSM(int x, int y, int z);
void setupSelfModifyingCode(int x, int y, int z);
short int computeDistanceToPoint(int x1, int z1, int x2, int z2);
void setMoveMode(int trackMode, int trackNumber);
void startActorRotation(short int beta, short int newBeta, short int param, rotateStruct *rotatePtr);
short int updateActorRotation(rotateStruct *rotatePtr);
void deleteObject(int objIdx);
void deleteSub(int actorIdx);
void stopAnim(int actorIdx);
void makeMessage(int messageIdx);
int drawTextOverlay(void);
void getZvRot(char *bodyPtr, ZVStruct *zvPtr, int alpha, int beta, int gamma);
} // end of namespace Fitd
#endif