GOPTIONS.H 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: /CounterStrike/GOPTIONS.H 1 3/03/97 10:24a Joe_bostic $ */
  19. /***********************************************************************************************
  20. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Command & Conquer *
  24. * *
  25. * File Name : OPTIONS.H *
  26. * *
  27. * Programmer : Joe L. Bostic *
  28. * *
  29. * Start Date : June 8, 1994 *
  30. * *
  31. * Last Update : June 8, 1994 [JLB] *
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #ifndef GOPTIONS_H
  37. #define GOPTIONS_H
  38. #include "options.h"
  39. #include "gadget.h"
  40. class GameOptionsClass : public OptionsClass {
  41. enum GameOptionsButtonEnum {
  42. BUTTON_LOAD=1,
  43. BUTTON_SAVE,
  44. BUTTON_DELETE,
  45. BUTTON_GAME,
  46. BUTTON_QUIT,
  47. #ifdef FIXIT_VERSION_3 // Stalemate games.
  48. BUTTON_DRAW,
  49. #endif
  50. BUTTON_RESUME,
  51. BUTTON_RESTATE,
  52. BUTTON_COUNT
  53. };
  54. enum GameOptionsEnum {
  55. OPTION_WIDTH=(216+8),
  56. OPTION_HEIGHT=100,
  57. OPTION_X=((320 - (216+8)) / 2),
  58. OPTION_Y=((200 - 100) / 2),
  59. #ifdef FRENCH
  60. BUTTON_WIDTH=142,
  61. #else
  62. BUTTON_WIDTH=130,
  63. #endif
  64. NUMBER_OF_BUTTONS=6, // ajw Not used.
  65. CAPTION_Y_POS=5,
  66. BUTTON_Y=21,
  67. BORDER1_LEN=72,
  68. BORDER2_LEN=16,
  69. BUTTON_RESUME_Y=(100-15)
  70. };
  71. public:
  72. GameOptionsClass(void): OptionsClass () { };
  73. void Adjust_Variables_For_Resolution(void);
  74. void Process(void);
  75. private:
  76. int OptionWidth;
  77. int OptionHeight;
  78. int OptionX;
  79. int OptionY;
  80. int ButtonWidth;
  81. int OButtonHeight;
  82. int CaptionYPos;
  83. int ButtonY;
  84. int Border1Len;
  85. int Border2Len;
  86. int ButtonResumeY;
  87. };
  88. #endif