/* ** Command & Conquer Generals(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 . */ //////////////////////////////////////////////////////////////////////////////// // // // (c) 2001-2003 Electronic Arts Inc. // // // //////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// // FILE: QuickmatchPreferences.h // Author: Matthew D. Campbell, August 2002 // Description: Saving/Loading of quickmatch preferences /////////////////////////////////////////////////////////////////////////////////////// #pragma once #ifndef __QUICKMATCHPREFERENCES_H__ #define __QUICKMATCHPREFERENCES_H__ //----------------------------------------------------------------------------- // USER INCLUDES ////////////////////////////////////////////////////////////// //----------------------------------------------------------------------------- #include "Common/UserPreferences.h" //----------------------------------------------------------------------------- // QuickMatchPreferences base class //----------------------------------------------------------------------------- class QuickMatchPreferences : public UserPreferences { public: QuickMatchPreferences(); virtual ~QuickMatchPreferences(); void setMapSelected(const AsciiString& mapName, Bool selected); Bool isMapSelected(const AsciiString& mapName); void setLastLadder(const AsciiString& addr, UnsignedShort port); AsciiString getLastLadderAddr( void ); UnsignedShort getLastLadderPort( void ); void setMaxDisconnects(Int val); Int getMaxDisconnects( void ); void setMaxPoints(Int val); Int getMaxPoints( void ); void setMinPoints(Int val); Int getMinPoints( void ); void setWaitTime(Int val); Int getWaitTime( void ); void setNumPlayers(Int val); Int getNumPlayers( void ); void setMaxPing(Int val); Int getMaxPing( void ); void setColor(Int val); Int getColor( void ); void setSide(Int val); Int getSide( void ); }; #endif // __QUICKMATCHPREFERENCES_H__