Subversion Repositories Games.Carmageddon

Rev

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

  1. #ifndef _RACESUMM_H_
  2. #define _RACESUMM_H_
  3.  
  4. #include "brender/br_types.h"
  5. #include "dr_types.h"
  6.  
  7. extern int gPlayer_lookup[6];
  8. extern tMouse_area gOld_back_button;
  9. extern tWreck_info gWreck_array[30];
  10. extern br_actor* gWreck_root;
  11. extern br_actor* gWreck_camera;
  12. extern tU32 gWreck_start_zoom;
  13. extern tU32 gWreck_gallery_start;
  14. extern float gTemp_rank_increase;
  15. extern float gRank_per_ms;
  16. extern tU32 gLast_wreck_draw;
  17. extern tS3_sound_tag gSumm_sound;
  18. extern float gCredits_per_ms;
  19. extern tMouse_area* gBack_button_ptr;
  20. extern tU32 gSummary_start;
  21. extern br_pixelmap* gWreck_z_buffer;
  22. extern br_pixelmap* gWreck_render_area;
  23. extern int gWreck_selected;
  24. extern int gWreck_zoom_out;
  25. extern br_pixelmap* gChrome_font;
  26. extern int gWreck_zoom_in;
  27. extern int gTemp_credits;
  28. extern int gUser_interacted;
  29. extern int gWreck_count;
  30. extern int gRank_etc_munged;
  31. extern int gRank_increase;
  32. extern int gTemp_earned;
  33. extern int gTemp_rank;
  34. extern int gWreck_zoomed_in;
  35. extern int gDone_initial;
  36. extern int gTemp_lost;
  37.  
  38. void MungeRankEtc(tProgram_state* pThe_state);
  39.  
  40. void CalcRankIncrease(void);
  41.  
  42. int RaceSummaryDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out);
  43.  
  44. void DrawInBox(int pBox_left, int pText_left, int pTop, int pRight, int pBottom, int pColour, int pAmount);
  45.  
  46. void DrawChromeNumber(int pLeft_1, int pLeft_2, int pPitch, int pTop, int pAmount);
  47.  
  48. void DrawSummaryItems(void);
  49.  
  50. void RampUpRate(float* pRate, tU32 pTime);
  51.  
  52. void DrawSummary(int pCurrent_choice, int pCurrent_mode);
  53.  
  54. void StartSummary(void);
  55.  
  56. void SetUpTemps(void);
  57.  
  58. int Summ1GoAhead(int* pCurrent_choice, int* pCurrent_mode);
  59.  
  60. int SummCheckGameOver(int* pCurrent_choice, int* pCurrent_mode);
  61.  
  62. tSO_result DoEndRaceSummary1(void);
  63.  
  64. // Suffix added to avoid duplicate symbol
  65. void PrepareBoundingRadius__racesumm(br_model* model);
  66.  
  67. void BuildWrecks(void);
  68.  
  69. void DisposeWrecks(void);
  70.  
  71. int MatrixIsIdentity(br_matrix34* pMat);
  72.  
  73. void SpinWrecks(tU32 pFrame_period);
  74.  
  75. void ZoomInTo(int pIndex, int* pCurrent_choice, int* pCurrent_mode);
  76.  
  77. void ZoomOutTo(int pIndex, int* pCurrent_choice, int* pCurrent_mode);
  78.  
  79. int WreckPick(br_actor* pActor, br_model* pModel, br_material* pMaterial, br_vector3* pRay_pos, br_vector3* pRay_dir, br_scalar pNear, br_scalar pFar, void* pArg);
  80.  
  81. int CastSelectionRay(int* pCurrent_choice, int* pCurrent_mode);
  82.  
  83. int DamageScrnExit(int* pCurrent_choice, int* pCurrent_mode);
  84.  
  85. void DamageScrnDraw(int pCurrent_choice, int pCurrent_mode);
  86.  
  87. int DamageScrnLeft(int* pCurrent_choice, int* pCurrent_mode);
  88.  
  89. int DamageScrnRight(int* pCurrent_choice, int* pCurrent_mode);
  90.  
  91. int DamageScrnUp(int* pCurrent_choice, int* pCurrent_mode);
  92.  
  93. int DamageScrnDown(int* pCurrent_choice, int* pCurrent_mode);
  94.  
  95. int DamageScrnGoHead(int* pCurrent_choice, int* pCurrent_mode);
  96.  
  97. int ClickDamage(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset);
  98.  
  99. int DamageScrnDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out);
  100.  
  101. tSO_result DoEndRaceSummary2(void);
  102.  
  103. // Suffix added to avoid duplicate symbol
  104. void DrawAnItem__racesumm(int pX, int pY_index, int pFont_index, char* pText);
  105.  
  106. // Suffix added to avoid duplicate symbol
  107. void DrawColumnHeading__racesumm(int pStr_index, int pX);
  108.  
  109. int SortScores(void* pFirst_one, void* pSecond_one);
  110.  
  111. void SortGameScores(void);
  112.  
  113. void NetSumDraw(int pCurrent_choice, int pCurrent_mode);
  114.  
  115. void DoNetRaceSummary(void);
  116.  
  117. tSO_result DoEndRaceSummary(int* pFirst_summary_done, tRace_result pRace_result);
  118.  
  119. #endif
  120.