CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

GOPTIONS.H (3657B)


      1 //
      2 // Copyright 2020 Electronic Arts Inc.
      3 //
      4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 
      5 // software: you can redistribute it and/or modify it under the terms of 
      6 // the GNU General Public License as published by the Free Software Foundation, 
      7 // either version 3 of the License, or (at your option) any later version.
      8 
      9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 
     16 /* $Header: /CounterStrike/GOPTIONS.H 1     3/03/97 10:24a Joe_bostic $ */
     17 /***********************************************************************************************
     18  ***              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               ***
     19  ***********************************************************************************************
     20  *                                                                                             *
     21  *                 Project Name : Command & Conquer                                            *
     22  *                                                                                             *
     23  *                    File Name : OPTIONS.H                                                    *
     24  *                                                                                             *
     25  *                   Programmer : Joe L. Bostic                                                *
     26  *                                                                                             *
     27  *                   Start Date : June 8, 1994                                                 *
     28  *                                                                                             *
     29  *                  Last Update : June 8, 1994   [JLB]                                         *
     30  *                                                                                             *
     31  *---------------------------------------------------------------------------------------------*
     32  * Functions:                                                                                  *
     33  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
     34 
     35 #ifndef GOPTIONS_H
     36 #define GOPTIONS_H
     37 
     38 #include "options.h"
     39 #include "gadget.h"
     40 
     41 
     42 class GameOptionsClass : public OptionsClass {
     43 		enum GameOptionsButtonEnum {
     44 			BUTTON_LOAD=1,
     45 			BUTTON_SAVE,
     46 			BUTTON_DELETE,
     47 			BUTTON_GAME,
     48 			BUTTON_QUIT,
     49 #ifdef FIXIT_VERSION_3		//	Stalemate games.
     50 			BUTTON_DRAW,
     51 #endif
     52 			BUTTON_RESUME,
     53 			BUTTON_RESTATE,
     54 
     55 			BUTTON_COUNT
     56 		};
     57 
     58 		enum GameOptionsEnum {
     59 			OPTION_WIDTH=(216+8),
     60 			OPTION_HEIGHT=100,
     61 			OPTION_X=((320 - (216+8)) / 2),
     62 			OPTION_Y=((200 - 100) / 2),
     63 #ifdef FRENCH
     64 			BUTTON_WIDTH=142,
     65 #else
     66 			BUTTON_WIDTH=130,
     67 #endif
     68 			NUMBER_OF_BUTTONS=6,		//	ajw Not used.
     69 			CAPTION_Y_POS=5,
     70 			BUTTON_Y=21,
     71 			BORDER1_LEN=72,
     72 			BORDER2_LEN=16,
     73 			BUTTON_RESUME_Y=(100-15)
     74 		};
     75 
     76 	public:
     77 		GameOptionsClass(void): OptionsClass () { };
     78 		void  Adjust_Variables_For_Resolution(void);
     79 		void Process(void);
     80 
     81 	private:
     82 		int	OptionWidth;
     83 		int 	OptionHeight;
     84 		int 	OptionX;
     85 		int 	OptionY;
     86 		int 	ButtonWidth;
     87 		int 	OButtonHeight;
     88 		int 	CaptionYPos;
     89 		int 	ButtonY;
     90 		int 	Border1Len;
     91 		int 	Border2Len;
     92 		int 	ButtonResumeY;
     93 
     94 };
     95 
     96 #endif