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