gdskirmish.h 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. ** Command & Conquer Renegade(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. /***********************************************************************************************
  19. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : Commando *
  23. * *
  24. * $Archive:: /Commando/Code/Commando/gdskirmish.h $*
  25. * *
  26. * $Author:: Tom_s $*
  27. * *
  28. * $Modtime:: 4/12/02 4:01p $*
  29. * *
  30. * $Revision:: 7 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef GDSKIRMISH_H
  36. #define GDSKIRMISH_H
  37. #include "gamedata.h"
  38. #include "basecontroller.h"
  39. class cGameDataSkirmish : public cGameData {
  40. public:
  41. cGameDataSkirmish (void);
  42. ~cGameDataSkirmish (void);
  43. cGameDataSkirmish & operator = (const cGameDataSkirmish &rhs);
  44. enum {MAX_CREDITS = 999999};
  45. virtual bool Is_Skirmish(void) const {return true;}
  46. virtual cGameDataSkirmish * As_Skirmish(void) {return this;}
  47. static const WCHAR* Get_Static_Game_Name(void);
  48. virtual void On_Game_Begin (void);
  49. virtual void On_Game_End (void);
  50. virtual void Soldier_Added (SoldierGameObj *soldier);
  51. virtual const WCHAR* Get_Game_Name(void) const {return this->Get_Static_Game_Name();}
  52. virtual GameTypeEnum Get_Game_Type(void) const {return GAME_TYPE_SKIRMISH;}
  53. virtual void Think(void);
  54. virtual void Load_From_Server_Config(void);
  55. virtual void Save_To_Server_Config(void);
  56. //virtual bool Is_Team_Game(void) const {return true;}
  57. // virtual int Choose_Player_Type(cPlayer* player, int team_choice, bool is_grunt) {return Choose_Smallest_Team();}
  58. virtual bool Is_Game_Over(void);
  59. virtual void Show_Game_Settings_Limits(void);
  60. virtual bool Is_Limited(void) const {return true;}
  61. virtual bool Is_Editable_Teaming(void) const {return true;}
  62. virtual bool Is_Editable_Clan_Game(void) const {return true;}
  63. virtual bool Is_Editable_Friendly_Fire(void) const {return true;}
  64. virtual void Reset_Game(bool is_reloaded);
  65. int Get_Starting_Credits(void) const {return StartingCredits;}
  66. void Set_Starting_Credits(int credits);
  67. void Show_My_Money(void);
  68. virtual void Get_Description(WideStringClass & description);
  69. cBoolean BaseDestructionEndsGame;
  70. cBoolean BeaconPlacementEndsGame;
  71. private:
  72. void Base_Destruction_Score_Tweaking(void);
  73. void Filter_Soldiers(void);
  74. int StartingCredits;
  75. BaseControllerClass BaseGDI;
  76. BaseControllerClass BaseNOD;
  77. bool IsPlaying;
  78. };
  79. #endif // GDSKIRMISH_H