| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- /*
- ** Command & Conquer Generals Zero Hour(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/>.
- */
- ////////////////////////////////////////////////////////////////////////////////
- // //
- // (c) 2001-2003 Electronic Arts Inc. //
- // //
- ////////////////////////////////////////////////////////////////////////////////
- ///////////////////////////////////////////////////////////////////////////////////////
- // FILE: SkirmishBattleHonors.h
- // Author: Matthew D. Campbell, November 2002
- // Description: Saving/Loading of skirmish battle honors info
- ///////////////////////////////////////////////////////////////////////////////////////
- #pragma once
- #ifndef __SKIRMISHBATTLEHONORS_H__
- #define __SKIRMISHBATTLEHONORS_H__
- //-----------------------------------------------------------------------------
- // USER INCLUDES //////////////////////////////////////////////////////////////
- //-----------------------------------------------------------------------------
- #include "Common/UnicodeString.h"
- #include "Common/UserPreferences.h"
- class Image;
- class GameWindow;
- class WinInstanceData;
- //-----------------------------------------------------------------------------
- // CustomMatchPreferences base class
- //-----------------------------------------------------------------------------
- class SkirmishBattleHonors : public UserPreferences
- {
- public:
- SkirmishBattleHonors();
- virtual ~SkirmishBattleHonors();
- void setWins(Int val);
- Int getWins(void) const;
- void setLosses(Int val);
- Int getLosses(void) const;
- void setWinStreak(Int val);
- Int getWinStreak(void) const;
- void setBestWinStreak(Int val);
- Int getBestWinStreak(void) const;
- void setChallengeMedals(Int val);
- Int getChallengeMedals(void) const;
- void setBuiltSCUD(void);
- Bool builtSCUD(void) const;
- void setBuiltParticleCannon(void);
- Bool builtParticleCannon(void) const;
- void setBuiltNuke(void);
- Bool builtNuke(void) const;
- void setHonors(Int mask);
- Int getHonors(void) const;
- void setEnduranceMedal(AsciiString mapName, Int difficulty, int numAIs);
- Int getEnduranceMedal(AsciiString mapName, Int difficulty) const;
- void setLastGeneral(AsciiString val);
- AsciiString getLastGeneral(void) const;
- void setNumGamesLoyal(Int val);
- Int getNumGamesLoyal(void) const;
- void setUSACampaignComplete(GameDifficulty difficulty);
- Bool getUSACampaignComplete(GameDifficulty difficulty) const;
- void setCHINACampaignComplete(GameDifficulty difficulty);
- Bool getCHINACampaignComplete(GameDifficulty difficulty) const;
- void setGLACampaignComplete(GameDifficulty difficulty);
- Bool getGLACampaignComplete(GameDifficulty difficulty) const;
- void setChallengeCampaignComplete(Int challenge, GameDifficulty difficulty);
- Bool getChallengeCampaignComplete(Int challenge, GameDifficulty difficulty) const;
- };
- void ResetBattleHonorInsertion(void);
- void InsertBattleHonor(GameWindow *list, const Image *image, Bool enabled, Int itemData, Int& row, Int& column, UnicodeString text = UnicodeString::TheEmptyString, Int extra = 0);
- void BattleHonorTooltip(GameWindow *window,
- WinInstanceData *instData,
- UnsignedInt mouse);
- #endif // __SKIRMISHBATTLEHONORS_H__
|