Subversion Repositories Games.Carmageddon

Rev

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

  1. #ifndef _OPTIONS_H_
  2. #define _OPTIONS_H_
  3.  
  4. #include "brender/br_types.h"
  5. #include "dr_types.h"
  6.  
  7. extern int gKey_defns[18];
  8. extern tRadio_bastards gRadio_bastards__options[13]; // suffix added to avoid duplicate symbol
  9. extern int gKey_count;
  10. extern int gLast_graph_sel__options; // suffix added to avoid duplicate symbol
  11. extern char* gKey_names[125];
  12. extern int gPending_entry;
  13. extern tInterface_spec* gThe_interface_spec__options; // suffix added to avoid duplicate symbol
  14. extern int gOrig_key_mapping[67];
  15. extern br_pixelmap* gDials_pix;
  16. extern int gCurrent_key;
  17.  
  18. void DrawDial(int pWhich_one, int pWhich_stage);
  19.  
  20. void MoveDialFromTo(int pWhich_one, int pOld_stage, int pNew_stage);
  21.  
  22. void SoundOptionsStart(void);
  23.  
  24. int SoundOptionsDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out);
  25.  
  26. int SoundOptionsLeft(int* pCurrent_choice, int* pCurrent_mode);
  27.  
  28. int SoundOptionsRight(int* pCurrent_choice, int* pCurrent_mode);
  29.  
  30. int SoundClick(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset);
  31.  
  32. void DoSoundOptions(void);
  33.  
  34. void GetGraphicsOptions(void);
  35.  
  36. void SetGraphicsOptions(void);
  37.  
  38. void PlayRadioOn2(int pIndex, int pValue);
  39.  
  40. void PlayRadioOff2(int pIndex, int pValue);
  41.  
  42. void PlayRadioOn__options(int pIndex, int pValue);
  43.  
  44. void PlayRadioOff__options(int pIndex, int pValue);
  45.  
  46. void DrawInitialRadios(void);
  47.  
  48. void RadioChanged(int pIndex, int pNew_value);
  49.  
  50. int GraphOptLeft(int* pCurrent_choice, int* pCurrent_mode);
  51.  
  52. int GraphOptRight(int* pCurrent_choice, int* pCurrent_mode);
  53.  
  54. int GraphOptUp(int* pCurrent_choice, int* pCurrent_mode);
  55.  
  56. int GraphOptDown(int* pCurrent_choice, int* pCurrent_mode);
  57.  
  58. int RadioClick(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset);
  59.  
  60. int GraphOptGoAhead(int* pCurrent_choice, int* pCurrent_mode);
  61.  
  62. // Suffix added to avoid duplicate symbol
  63. void PlotAGraphBox__options(int pIndex, int pColour_value);
  64.  
  65. // Suffix added to avoid duplicate symbol
  66. void DrawAGraphBox__options(int pIndex);
  67.  
  68. // Suffix added to avoid duplicate symbol
  69. void EraseAGraphBox__options(int pIndex);
  70.  
  71. void DrawGraphBox(int pCurrent_choice, int pCurrent_mode);
  72.  
  73. void DoGraphicsOptions(void);
  74.  
  75. void CalibrateJoysticks(void);
  76.  
  77. void StripControls(unsigned char* pStr);
  78.  
  79. void LoadKeyNames(void);
  80.  
  81. void DisposeKeyNames(void);
  82.  
  83. void SaveOrigKeyMapping(void);
  84.  
  85. void GetKeyCoords(int pIndex, int* pY, int* pName_x, int* pKey_x, int* pEnd_box);
  86.  
  87. void SetKeysToDefault(void);
  88.  
  89. void SaveKeyMapping(void);
  90.  
  91. void ChangeKeyMapIndex(int pNew_one);
  92.  
  93. void DrawKeyAssignments(int pCurrent_choice, int pCurrent_mode);
  94.  
  95. int KeyAssignLeft(int* pCurrent_choice, int* pCurrent_mode);
  96.  
  97. int KeyAssignRight(int* pCurrent_choice, int* pCurrent_mode);
  98.  
  99. int KeyAssignUp(int* pCurrent_choice, int* pCurrent_mode);
  100.  
  101. int KeyAssignDown(int* pCurrent_choice, int* pCurrent_mode);
  102.  
  103. int KeyAssignGoAhead(int* pCurrent_choice, int* pCurrent_mode);
  104.  
  105. int MouseyClickBastard(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset);
  106.  
  107. void DrawInitialKMRadios(void);
  108.  
  109. void DoControlOptions(void);
  110.  
  111. void LoadSoundOptionsData(void);
  112.  
  113. void FreeSoundOptionsData(void);
  114.  
  115. void DrawDisabledOptions(void);
  116.  
  117. void DoOptions(void);
  118.  
  119. #endif
  120.