Subversion Repositories Games.Carmageddon

Rev

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

  1. #ifndef _DISPLAYS_H_
  2. #define _DISPLAYS_H_
  3.  
  4. #include "brender/br_types.h"
  5. #include "dr_types.h"
  6.  
  7. extern int gLast_fancy_index;
  8. extern int gLast_credit_headup__displays; // suffix added to avoid duplicate symbol
  9. extern int gLast_time_credit_headup;
  10. extern tDR_font* gCached_font;
  11. extern br_font* gBR_fonts[4];
  12. extern tQueued_headup gQueued_headups[4];
  13. extern int gOld_times[10];
  14. extern int gLast_fancy_headup;
  15. extern tU32 gLast_time_earn_time;
  16. extern tU32 gLast_centre_headup;
  17. extern tU32 gLast_fancy_time;
  18. extern int gQueued_headup_count;
  19. extern tU32 gLast_earn_time;
  20. extern tU32 gLast_time_credit_amount;
  21. extern int gLast_credit_amount;
  22. extern tHeadup gHeadups[15];
  23. extern int gLaps_headup;
  24. extern int gCar_kill_count_headup;
  25. extern int gTimer_headup;
  26. extern int gTime_awarded_headup;
  27. extern int gPed_kill_count_headup;
  28. extern int gDim_amount;
  29. extern br_pixelmap* gHeadup_images[32];
  30. extern int gNet_cash_headup;
  31. extern int gNet_ped_headup;
  32. extern int gCredits_lost_headup;
  33. extern int gCredits_won_headup;
  34.  
  35. void GetTimerString(char* pStr, int pFudge_colon);
  36.  
  37. void InitHeadups(void);
  38.  
  39. void ClearHeadup(int pIndex);
  40.  
  41. void ClearHeadupSlot(int pSlot_index);
  42.  
  43. void ClearHeadups(void);
  44.  
  45. int HeadupActive(int pIndex);
  46.  
  47. void DRPixelmapText(br_pixelmap* pPixelmap, int pX, int pY, tDR_font* pFont, char* pText, int pRight_edge);
  48.  
  49. void DRPixelmapCleverText2(br_pixelmap* pPixelmap, int pX, int pY, tDR_font* pFont, char* pText, int pRight_edge);
  50.  
  51. void DeviouslyDimRectangle(br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pKnock_out_corners);
  52.  
  53. void DimRectangle(br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pKnock_out_corners);
  54.  
  55. void DimAFewBits(void);
  56.  
  57. void KillOldestQueuedHeadup(void);
  58.  
  59. void DubreyBar(int pX_index, int pY, int pColour);
  60.  
  61. void DoPSPowerHeadup(int pY, int pLevel, char* pName, int pBar_colour);
  62.  
  63. void DoPSPowerupHeadups(void);
  64.  
  65. void DoHeadups(tU32 pThe_time);
  66.  
  67. int FindAHeadupHoleWoofBarkSoundsABitRude(int pSlot_index);
  68.  
  69. int DRTextWidth(tDR_font* pFont, char* pText);
  70.  
  71. int DRTextCleverWidth(tDR_font* pFont, signed char* pText);
  72.  
  73. void DRPixelmapCentredText(br_pixelmap* pPixelmap, int pX, int pY, tDR_font* pFont, char* pText);
  74.  
  75. int IsHeadupTextClever(signed char* pText);
  76.  
  77. int MungeHeadupWidth(tHeadup* pHeadup);
  78.  
  79. int NewTextHeadupSlot2(int pSlot_index, int pFlash_rate, int pLifetime, int pFont_index, char* pText, int pQueue_it);
  80.  
  81. int NewTextHeadupSlot(int pSlot_index, int pFlash_rate, int pLifetime, int pFont_index, char* pText);
  82.  
  83. int NewImageHeadupSlot(int pSlot_index, int pFlash_rate, int pLifetime, int pImage_index);
  84.  
  85. void DoFancyHeadup(int pIndex);
  86.  
  87. void AdjustHeadups(void);
  88.  
  89. void MoveHeadupTo(int pHeadup_index, int pNew_x, int pNew_y);
  90.  
  91. void ChangeHeadupText(int pHeadup_index, char* pNew_text);
  92.  
  93. void ChangeHeadupImage(int pHeadup_index, int pNew_image);
  94.  
  95. void ChangeHeadupColour(int pHeadup_index, int pNew_colour);
  96.  
  97. void DoDamageScreen(tU32 pThe_time);
  98.  
  99. void PoshDrawLine(float pAngle, br_pixelmap* pDestn, int pX1, int pY1, int pX2, int pY2, int pColour);
  100.  
  101. void DoInstruments(tU32 pThe_time);
  102.  
  103. void DoSteeringWheel(tU32 pThe_time);
  104.  
  105. void ChangingView(void);
  106.  
  107. void EarnCredits2(int pAmount, char* pPrefix_text);
  108.  
  109. void EarnCredits(int pAmount);
  110.  
  111. int SpendCredits(int pAmount);
  112.  
  113. void AwardTime(tU32 pTime);
  114.  
  115. void DrawRectangle(br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pColour);
  116.  
  117. void DrawRRectangle(br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pColour);
  118.  
  119. void OoerrIveGotTextInMeBoxMissus(int pFont_index, char* pText, br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pCentred);
  120.  
  121. void TransBrPixelmapText(br_pixelmap* pPixelmap, int pX, int pY, br_uint_32 pColour, br_font* pFont, char* pText);
  122.  
  123. void TransDRPixelmapText(br_pixelmap* pPixelmap, int pX, int pY, tDR_font* pFont, char* pText, int pRight_edge);
  124.  
  125. void TransDRPixelmapCleverText(br_pixelmap* pPixelmap, int pX, int pY, tDR_font* pFont, char* pText, int pRight_edge);
  126.  
  127. #endif
  128.