92 lines
4.3 KiB
C++
92 lines
4.3 KiB
C++
/*
|
|
** Command & Conquer Renegade(tm)
|
|
** Copyright 2025 Electronic Arts Inc.
|
|
**
|
|
** This program is free software: you can redistribute it and/or modify
|
|
** it under the terms of the GNU General Public License as published by
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
** (at your option) any later version.
|
|
**
|
|
** This program is distributed in the hope that it will be useful,
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
** GNU General Public License for more details.
|
|
**
|
|
** You should have received a copy of the GNU General Public License
|
|
** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/***********************************************************************************************
|
|
*** Confidential - Westwood Studios ***
|
|
***********************************************************************************************
|
|
* *
|
|
* Project Name : Commando *
|
|
* *
|
|
* $Archive:: /Commando/Code/Commando/gdskirmish.h $*
|
|
* *
|
|
* $Author:: Tom_s $*
|
|
* *
|
|
* $Modtime:: 4/12/02 4:01p $*
|
|
* *
|
|
* $Revision:: 7 $*
|
|
* *
|
|
*---------------------------------------------------------------------------------------------*
|
|
* Functions: *
|
|
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
|
|
|
#ifndef GDSKIRMISH_H
|
|
#define GDSKIRMISH_H
|
|
|
|
#include "gamedata.h"
|
|
#include "basecontroller.h"
|
|
|
|
|
|
class cGameDataSkirmish : public cGameData {
|
|
public:
|
|
|
|
cGameDataSkirmish (void);
|
|
~cGameDataSkirmish (void);
|
|
|
|
cGameDataSkirmish & operator = (const cGameDataSkirmish &rhs);
|
|
|
|
enum {MAX_CREDITS = 999999};
|
|
|
|
virtual bool Is_Skirmish(void) const {return true;}
|
|
virtual cGameDataSkirmish * As_Skirmish(void) {return this;}
|
|
static const WCHAR* Get_Static_Game_Name(void);
|
|
virtual void On_Game_Begin (void);
|
|
virtual void On_Game_End (void);
|
|
virtual void Soldier_Added (SoldierGameObj *soldier);
|
|
virtual const WCHAR* Get_Game_Name(void) const {return this->Get_Static_Game_Name();}
|
|
virtual GameTypeEnum Get_Game_Type(void) const {return GAME_TYPE_SKIRMISH;}
|
|
virtual void Think(void);
|
|
virtual void Load_From_Server_Config(void);
|
|
virtual void Save_To_Server_Config(void);
|
|
//virtual bool Is_Team_Game(void) const {return true;}
|
|
// virtual int Choose_Player_Type(cPlayer* player, int team_choice, bool is_grunt) {return Choose_Smallest_Team();}
|
|
virtual bool Is_Game_Over(void);
|
|
virtual void Show_Game_Settings_Limits(void);
|
|
virtual bool Is_Limited(void) const {return true;}
|
|
virtual bool Is_Editable_Teaming(void) const {return true;}
|
|
virtual bool Is_Editable_Clan_Game(void) const {return true;}
|
|
virtual bool Is_Editable_Friendly_Fire(void) const {return true;}
|
|
virtual void Reset_Game(bool is_reloaded);
|
|
int Get_Starting_Credits(void) const {return StartingCredits;}
|
|
void Set_Starting_Credits(int credits);
|
|
void Show_My_Money(void);
|
|
virtual void Get_Description(WideStringClass & description);
|
|
|
|
cBoolean BaseDestructionEndsGame;
|
|
cBoolean BeaconPlacementEndsGame;
|
|
|
|
private:
|
|
void Base_Destruction_Score_Tweaking(void);
|
|
void Filter_Soldiers(void);
|
|
|
|
int StartingCredits;
|
|
BaseControllerClass BaseGDI;
|
|
BaseControllerClass BaseNOD;
|
|
bool IsPlaying;
|
|
};
|
|
|
|
#endif // GDSKIRMISH_H
|