|
| 1 | +/* |
| 2 | +** Command & Conquer Generals Zero Hour(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 | +//////////////////////////////////////////////////////////////////////////////// |
| 20 | +// // |
| 21 | +// (c) 2001-2003 Electronic Arts Inc. // |
| 22 | +// // |
| 23 | +//////////////////////////////////////////////////////////////////////////////// |
| 24 | + |
| 25 | +/////////////////////////////////////////////////////////////////////////////////////// |
| 26 | +// FILE: OptionPreferences.h |
| 27 | +// Author: Matthew D. Campbell, April 2002 |
| 28 | +// Description: Saving/Loading of option preferences |
| 29 | +/////////////////////////////////////////////////////////////////////////////////////// |
| 30 | + |
| 31 | +#pragma once |
| 32 | + |
| 33 | +#include "Common/UserPreferences.h" |
| 34 | + |
| 35 | +typedef UnsignedInt CursorCaptureMode; |
| 36 | +typedef UnsignedInt ScreenEdgeScrollMode; |
| 37 | + |
| 38 | +//----------------------------------------------------------------------------- |
| 39 | +// OptionsPreferences options menu class |
| 40 | +//----------------------------------------------------------------------------- |
| 41 | +class OptionPreferences : public UserPreferences |
| 42 | +{ |
| 43 | +public: |
| 44 | + OptionPreferences(); |
| 45 | + virtual ~OptionPreferences(); |
| 46 | + |
| 47 | + Bool loadFromIniFile(); |
| 48 | + |
| 49 | + UnsignedInt getLANIPAddress(void); |
| 50 | + UnsignedInt getOnlineIPAddress(void); |
| 51 | + void setLANIPAddress(AsciiString IP); |
| 52 | + void setOnlineIPAddress(AsciiString IP); |
| 53 | + void setLANIPAddress(UnsignedInt IP); |
| 54 | + void setOnlineIPAddress(UnsignedInt IP); |
| 55 | + Bool getArchiveReplaysEnabled() const; |
| 56 | + Bool getAlternateMouseModeEnabled(void); |
| 57 | + Bool getRetaliationModeEnabled(); |
| 58 | + Bool getDoubleClickAttackMoveEnabled(void); |
| 59 | + Real getScrollFactor(void); |
| 60 | + Bool getDrawScrollAnchor(void); |
| 61 | + Bool getMoveScrollAnchor(void); |
| 62 | + Bool getCursorCaptureEnabledInWindowedGame() const; |
| 63 | + Bool getCursorCaptureEnabledInWindowedMenu() const; |
| 64 | + Bool getCursorCaptureEnabledInFullscreenGame() const; |
| 65 | + Bool getCursorCaptureEnabledInFullscreenMenu() const; |
| 66 | + CursorCaptureMode getCursorCaptureMode() const; |
| 67 | + Bool getScreenEdgeScrollEnabledInWindowedApp() const; |
| 68 | + Bool getScreenEdgeScrollEnabledInFullscreenApp() const; |
| 69 | + ScreenEdgeScrollMode getScreenEdgeScrollMode() const; |
| 70 | + Bool getSendDelay(void); |
| 71 | + Int getFirewallBehavior(void); |
| 72 | + Short getFirewallPortAllocationDelta(void); |
| 73 | + UnsignedShort getFirewallPortOverride(void); |
| 74 | + Bool getFirewallNeedToRefresh(void); |
| 75 | + Bool usesSystemMapDir(void); |
| 76 | + AsciiString getPreferred3DProvider(void); |
| 77 | + AsciiString getSpeakerType(void); |
| 78 | + Real getSoundVolume(void); |
| 79 | + Real get3DSoundVolume(void); |
| 80 | + Real getSpeechVolume(void); |
| 81 | + Real getMusicVolume(void); |
| 82 | + Real getMoneyTransactionVolume(void) const; |
| 83 | + Bool saveCameraInReplays(void); |
| 84 | + Bool useCameraInReplays(void); |
| 85 | + Bool getPlayerObserverEnabled() const; |
| 86 | + Int getStaticGameDetail(void); |
| 87 | + Int getIdealStaticGameDetail(void); |
| 88 | + Real getGammaValue(void); |
| 89 | + Int getTextureReduction(void); |
| 90 | + void getResolution(Int *xres, Int *yres); |
| 91 | + Bool get3DShadowsEnabled(void); |
| 92 | + Bool get2DShadowsEnabled(void); |
| 93 | + Bool getCloudShadowsEnabled(void); |
| 94 | + Bool getLightmapEnabled(void); |
| 95 | + Bool getSmoothWaterEnabled(void); |
| 96 | + Bool getTreesEnabled(void); |
| 97 | + Bool getExtraAnimationsDisabled(void); |
| 98 | + Bool getUseHeatEffects(void); |
| 99 | + Bool getDynamicLODEnabled(void); |
| 100 | + Bool getFPSLimitEnabled(void); |
| 101 | + Bool getBuildingOcclusionEnabled(void); |
| 102 | + Int getParticleCap(void); |
| 103 | + |
| 104 | + Int getCampaignDifficulty(void); |
| 105 | + void setCampaignDifficulty(Int diff); |
| 106 | + |
| 107 | + Int getNetworkLatencyFontSize(void); |
| 108 | + Int getRenderFpsFontSize(void); |
| 109 | + Int getSystemTimeFontSize(void); |
| 110 | + Int getGameTimeFontSize(void); |
| 111 | + Int getPlayerInfoListFontSize(void); |
| 112 | + |
| 113 | + Real getResolutionFontAdjustment(void); |
| 114 | + |
| 115 | + Bool getShowMoneyPerMinute(void) const; |
| 116 | +}; |
0 commit comments