| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- /*
- ** 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/>.
- */
- /***********************************************************************************************
- *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
- ***********************************************************************************************
- * *
- * Project Name : Combat *
- * *
- * $Archive:: /Commando/Code/commando/dlgmplanhostoptions.h $*
- * *
- * Author:: Patrick Smith *
- * *
- * $Modtime:: 3/27/02 10:25a $*
- * *
- * $Revision:: 18 $*
- * *
- *---------------------------------------------------------------------------------------------*
- * Functions: *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
- #if defined(_MSC_VER)
- #pragma once
- #endif
- #ifndef __DLG_MP_LAN_HOST_OPTIONS_H
- #define __DLG_MP_LAN_HOST_OPTIONS_H
- #include "menudialog.h"
- #include "resource.h"
- #include "childdialog.h"
- #include <wwlib\vector.h>
- #include <WWLib\Signaler.h>
- ////////////////////////////////////////////////////////////////
- // Forward declarations
- ////////////////////////////////////////////////////////////////
- class cGameData;
- class WolGameModeClass;
- class DlgMsgBoxEvent;
- class ModPackageClass;
- class MPLanHostMapCycleOptionsTabClass;
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostOptionsMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostOptionsMenuClass :
- public MenuDialogClass,
- protected Signaler<WolGameModeClass>
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostOptionsMenuClass (void);
- ~MPLanHostOptionsMenuClass();
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- void On_Periodic(void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void Enable_Mod_Selection (bool onoff);
- private:
- ////////////////////////////////////////////////////////////////
- // Private methods
- ////////////////////////////////////////////////////////////////
- void ReceiveSignal(WolGameModeClass&);
- void Start_Game(cGameData* theGame);
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- bool mStartTheGame;
- unsigned long mClanID;
- MPLanHostMapCycleOptionsTabClass * MapCycleDialog;
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostBasicOptionsTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostBasicOptionsTabClass :
- public ChildDialogClass,
- public Signaler<bool>
- {
- public:
- static MPLanHostBasicOptionsTabClass* Get_Instance(void);
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostBasicOptionsTabClass (void);
- ~MPLanHostBasicOptionsTabClass (void);
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- bool On_Apply (void);
- protected:
- void InitSideChoiceCombo(int sidePref);
- void On_EditCtrl_Change(EditCtrlClass* edit, int ctrlID);
- private:
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- static MPLanHostBasicOptionsTabClass* _mInstance;
- static int BandTestMaxPlayers;
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostAdvancedOptionsTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostAdvancedOptionsTabClass :
- public ChildDialogClass,
- public Observer<DlgMsgBoxEvent>,
- protected Signaler<bool>
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostAdvancedOptionsTabClass (void);
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- bool On_Apply (void);
- void On_Command (int ctrl_id, int message_id, DWORD param);
- void HandleNotification(DlgMsgBoxEvent&);
- protected:
- void ReceiveSignal(bool&);
- void ConfigureWOLControls(void);
- bool IsHostAClanMember(void) const;
- private:
- bool mIsWOLGame;
- bool mPassword;
- bool mChangeTeams;
- bool mRemixTeams;
- bool mLaddered;
- bool mClanGame;
- bool mQuickmatch;
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostMapCycleOptionsTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostMapCycleOptionsTabClass : public ChildDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostMapCycleOptionsTabClass (void);
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- bool On_Apply (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void On_ListCtrl_DblClk (ListCtrlClass *list_ctrl, int ctrl_id, int item_index);
- void On_ComboBoxCtrl_Sel_Change (ComboBoxCtrlClass *combo_ctrl, int ctrl_id, int old_sel, int new_sel);
- void Enable_Mod_Selection (bool onoff);
- private:
- ////////////////////////////////////////////////////////////////
- // Private methods
- ////////////////////////////////////////////////////////////////
- void Build_Map_List (void);
- void Build_Mod_Package_List (void);
- void Add_Map (void);
- void Remove_Map (void);
- void Fill_Map_Ctrls (void);
- void Populate_Map_List_Ctrl (void);
- void Build_Map_List (const ModPackageClass *package);
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- DynamicVectorClass<WideStringClass> MapList;
- DynamicVectorClass<WideStringClass> MapCycleList;
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostVictoryOptionsTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostVictoryOptionsTabClass : public ChildDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostVictoryOptionsTabClass (void);
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- bool On_Apply (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- private:
- ////////////////////////////////////////////////////////////////
- // Private methods
- ////////////////////////////////////////////////////////////////
- void Update_Enable_State (void);
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- };
- /*
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostCTFOptionsTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostCTFOptionsTabClass : public ChildDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostCTFOptionsTabClass (void) :
- ChildDialogClass (IDD_MP_LAN_HOST_OPTIONS_CTF_SETTINGS) {}
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- bool On_Apply (void);
- };
- */
- ////////////////////////////////////////////////////////////////
- //
- // MPLanHostCnCOptionsTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanHostCnCOptionsTabClass : public ChildDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- MPLanHostCnCOptionsTabClass (void) :
- ChildDialogClass (IDD_MP_LAN_HOST_OPTIONS_CNC_SETTINGS) {}
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- void On_Init_Dialog (void);
- bool On_Apply (void);
- };
- #endif //__DLG_MP_LAN_HOST_OPTIONS_H
|