2020-03-27 21:47:29 +01:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
2020-08-28 20:38:01 +02:00
|
|
|
extern int game_over;
|
2020-10-23 12:06:50 +02:00
|
|
|
extern int gDemoLevel;
|
|
|
|
|
2020-10-07 17:17:03 +02:00
|
|
|
extern XZPAIR gStartPos;
|
|
|
|
|
2020-05-18 20:32:09 +02:00
|
|
|
extern int xa_timeout;
|
2020-04-05 23:04:50 +02:00
|
|
|
extern int FrameCnt;
|
2020-04-12 23:30:03 +02:00
|
|
|
extern int CurrentPlayerView;
|
2020-05-19 21:00:18 +02:00
|
|
|
extern char CameraChanged;
|
2020-04-13 15:45:34 +02:00
|
|
|
extern int FrAng;
|
2020-04-17 20:44:01 +02:00
|
|
|
extern int gStopPadReads;
|
2020-04-22 17:33:38 +02:00
|
|
|
extern int num_active_cars;
|
2020-04-22 18:28:10 +02:00
|
|
|
extern int numInactiveCars;
|
2020-04-05 23:04:50 +02:00
|
|
|
|
2020-04-20 16:14:50 +02:00
|
|
|
extern int gLightsOn;
|
2020-04-22 15:50:56 +02:00
|
|
|
extern int NightAmbient;
|
|
|
|
extern int wetness;
|
2020-06-06 22:10:04 +02:00
|
|
|
extern int leadCarId;
|
2020-04-20 16:14:50 +02:00
|
|
|
|
2020-09-05 11:10:42 +02:00
|
|
|
extern int scr_z;
|
|
|
|
|
2020-04-26 12:07:37 +02:00
|
|
|
extern int DawnCount;
|
|
|
|
|
2020-08-29 14:58:09 +02:00
|
|
|
extern int ObjectDrawnValue;
|
|
|
|
extern int ObjectDrawnCounter;
|
|
|
|
|
2021-03-24 18:56:18 +01:00
|
|
|
extern int Havana3DLevelDraw;
|
2021-03-24 18:56:01 +01:00
|
|
|
|
2020-05-31 16:16:47 +02:00
|
|
|
extern void SsSetSerialVol(short s_num, short voll, short volr); // TEMPORARY
|
2021-04-14 18:27:06 +02:00
|
|
|
|
|
|
|
extern void State_GameInit(void* param); // 0x00059330
|
|
|
|
extern void State_GameLoop(void* param); // 0x0005A8DC
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2021-04-15 07:49:48 +02:00
|
|
|
extern int FilterFrameTime();
|
2021-04-14 18:27:06 +02:00
|
|
|
|
2020-03-27 21:47:29 +01:00
|
|
|
extern void DrawGame(); // 0x0005C458
|
|
|
|
|
2020-10-31 01:11:58 +01:00
|
|
|
extern void EndGame(GAMEMODE mode); // 0x0005C574
|
|
|
|
extern void EnablePause(PAUSEMODE mode); // 0x0005C590
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-05-20 23:33:21 +02:00
|
|
|
extern int redriver2_main(int argc, char** argv); // 0x0005B384
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void FadeScreen(int end_value); // 0x0005C668
|
|
|
|
|
|
|
|
extern void UpdatePlayerInformation(); // 0x0005B54C
|
|
|
|
|
|
|
|
extern void RenderGame2(int view); // 0x0005B888
|
|
|
|
extern void RenderGame(); // 0x0005C6E0
|
|
|
|
|
|
|
|
extern void InitGameVariables(); // 0x0005BCE4
|
|
|
|
|
|
|
|
extern void DealWithHorn(char *hr, int i); // 0x0005BF74
|
|
|
|
|
2020-12-08 20:50:28 +01:00
|
|
|
typedef void(*occlFunc)(int* comp_val);
|
2020-04-12 22:09:59 +02:00
|
|
|
extern int Havana3DOcclusion(occlFunc func, int *param); // 0x0005C16C
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
#endif
|