Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
#ifndef _MAINLOOP_H_
2
#define _MAINLOOP_H_
3
 
20 pmbaty 4
#include "brender/br_types.h"
1 pmbaty 5
#include "dr_types.h"
6
 
7
extern int gNasty_kludgey_cockpit_variable;
8
extern tInfo_mode gInfo_mode;
9
extern tU32 gLast_tick_count;
10
extern tU32 gActual_last_tick_count;
11
extern tU32 gAverage_frame_period;
12
extern tU32 gOld_camera_time;
13
extern tU32 gLast_wasted_massage_start;
14
extern float gMr_odo;
15
extern tU32 gWasted_last_flash;
16
extern tTime_bonus_state gTime_bonus_state;
17
extern int gQueued_wasted_massages_count;
18
extern int gTime_bonus;
19
extern int gRace_bonus_headup;
20
extern int gWasted_flash_state;
21
extern int gLast_time_headup;
22
extern int gTime_bonus_headup;
23
extern int gQueued_wasted_massages[5];
24
extern tU32 gTime_bonus_start;
25
extern int gLast_credit_headup__mainloop; // suffix added to avoid duplicate symbol
26
 
27
void ToggleInfo(void);
28
 
29
void CalculateFrameRate(void);
30
 
31
void LoseOldestWastedMassage(void);
32
 
33
void QueueWastedMassage(int pIndex);
34
 
35
void MungeHeadups(void);
36
 
37
void UpdateFramePeriod(tU32* pCamera_period);
38
 
39
tU32 GetLastTickCount(void);
40
 
41
void CheckTimer(void);
42
 
43
int MungeRaceFinished(void);
44
 
45
tRace_result MainGameLoop(void);
46
 
47
tRace_result DoRace(void);
48
 
49
#endif