Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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