| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587 |
- /*
- ** 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/dialogtests.h $*
- * *
- * Author:: Patrick Smith *
- * *
- * $Modtime:: 2/16/02 3:55p $*
- * *
- * $Revision:: 37 $*
- * *
- *---------------------------------------------------------------------------------------------*
- * Functions: *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
- #if defined(_MSC_VER)
- #pragma once
- #endif
- #ifndef __DIALOG_TESTS_H
- #define __DIALOG_TESTS_H
- #include "popupdialog.h"
- #include "menudialog.h"
- #include "childdialog.h"
- #include "resource.h"
- #include "DlgWOLWait.h"
- #include <WWLib\Notify.h>
- #include <WWOnline\RefPtr.h>
- class WheeledVehicleDefClass;
- class TrackedVehicleDefClass;
- ////////////////////////////////////////////////////////////////
- //
- // SplashIntroMenuDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class SplashIntroMenuDialogClass : public MenuDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- SplashIntroMenuDialogClass (void);
- ~SplashIntroMenuDialogClass (void);
-
- //
- // Inherited
- //
- void On_Init_Dialog (void);
- void On_Frame_Update (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- //
- // Static accessors
- //
- static bool Is_Complete (void) { return IsComplete; }
- private:
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- float Timer;
- static bool IsComplete;
- };
- ////////////////////////////////////////////////////////////////
- //
- // SplashOutroMenuDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class SplashOutroMenuDialogClass : public MenuDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- SplashOutroMenuDialogClass (void);
- ~SplashOutroMenuDialogClass (void);
-
- //
- // Inherited
- //
- void On_Init_Dialog (void);
- void On_Frame_Update (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- private:
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- float Timer;
- };
- ////////////////////////////////////////////////////////////////
- //
- // GameSpyMainDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class GameSpyMainDialogClass : public MenuDialogClass,
- public Observer<DlgWOLWaitEvent>
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- GameSpyMainDialogClass (void);
- ~GameSpyMainDialogClass (void);
-
- //
- // Inherited
- //
- void On_Init_Dialog(void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void On_Last_Menu_Ending (void);
- void On_Frame_Update (void);
- //
- // Singleton access
- //
- static void Display (void);
- static GameSpyMainDialogClass * Get_Instance (void) { return _TheInstance; }
- private:
- void HandleNotification(DlgWOLWaitEvent& event);
- static void Host_Game(void);
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- static GameSpyMainDialogClass * _TheInstance;
- static bool DetectingBandwidth;
- };
- ////////////////////////////////////////////////////////////////
- //
- // GameSpyOptionsDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class GameSpyOptionsDialogClass : public MenuDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- GameSpyOptionsDialogClass (void);
- ~GameSpyOptionsDialogClass (void);
-
- //
- // Inherited
- //
- void On_Init_Dialog(void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- //void On_Last_Menu_Ending (void);
- //
- // Singleton access
- //
- static void Display (void);
- static GameSpyOptionsDialogClass * Get_Instance (void) { return _TheInstance; }
- private:
- void Init_Connection_Speed_Combo(void);
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- static GameSpyOptionsDialogClass * _TheInstance;
- };
- ////////////////////////////////////////////////////////////////
- //
- // InternetMainDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class InternetMainDialogClass : public MenuDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- InternetMainDialogClass (void);
- ~InternetMainDialogClass (void);
-
- //
- // Inherited
- //
- void On_Init_Dialog(void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- //void On_Last_Menu_Ending (void);
- //
- // Singleton access
- //
- static void Display (void);
- static InternetMainDialogClass * Get_Instance (void) { return _TheInstance; }
- private:
- ////////////////////////////////////////////////////////////////
- // Private member data
- ////////////////////////////////////////////////////////////////
- static InternetMainDialogClass * _TheInstance;
- };
- ////////////////////////////////////////////////////////////////
- //
- // StartSPGameDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class StartSPGameDialogClass : public MenuDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- StartSPGameDialogClass (void);
-
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- //void On_TreeCtrl_Needs_Children (TreeCtrlClass *list_ctrl, int ctrl_id, TreeItemClass *parent_item);
- };
- ////////////////////////////////////////////////////////////////
- //
- // DifficultyMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class DifficultyMenuClass : public MenuDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- DifficultyMenuClass (void);
- //
- // Inherited
- //
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void On_Menu_Activate (bool onoff);
- void On_Frame_Update (void);
- void Set_Replay( const char * filename ) { ReplayFilename = filename; }
- private:
- StringClass ReplayFilename;
- int CurrSel;
- };
- ////////////////////////////////////////////////////////////////
- //
- // MultiplayOptionsMainMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MultiplayOptionsMainMenuClass : public MenuDialogClass
- {
- public:
- MultiplayOptionsMainMenuClass (void) :
- MenuDialogClass (IDD_MENU_OPTION_MAIN_MULTIPLAY) {}
-
- //
- // Inherited
- //
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- };
- ////////////////////////////////////////////////////////////////
- //
- // CampaignScoreTabClass
- //
- ////////////////////////////////////////////////////////////////
- class CampaignScoreTabClass : public ChildDialogClass
- {
- public:
- CampaignScoreTabClass (void) :
- ChildDialogClass (IDD_SCORE_CAMPAIGN_TAB) {}
- };
- ////////////////////////////////////////////////////////////////
- //
- // MissionsScoreTabClass
- //
- ////////////////////////////////////////////////////////////////
- class MissionsScoreTabClass : public ChildDialogClass
- {
- public:
- MissionsScoreTabClass (void) :
- ChildDialogClass (IDD_SCORE_MISSIONS_TAB) {}
- };
- ////////////////////////////////////////////////////////////////
- //
- // OptionsMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class OptionsMenuClass : public MenuDialogClass
- {
- public:
- OptionsMenuClass (void) :
- MenuDialogClass (IDD_MENU_OPTIONS) {}
- };
- ////////////////////////////////////////////////////////////////
- //
- // QuitVerificationDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class QuitVerificationDialogClass : public PopupDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- QuitVerificationDialogClass (void);
- ~QuitVerificationDialogClass (void);
- ////////////////////////////////////////////////////////////////
- // Public methods
- ////////////////////////////////////////////////////////////////
- static QuitVerificationDialogClass * Get_Instance (void) { return _TheInstance; }
- private:
-
- ////////////////////////////////////////////////////////////////
- // Static member data
- ////////////////////////////////////////////////////////////////
- static QuitVerificationDialogClass * _TheInstance;
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPMainMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPMainMenuClass : public MenuDialogClass
- {
- public:
- MPMainMenuClass (void) :
- MenuDialogClass (IDD_MENU_MAIN_MULTIPLAY) {}
- void On_Init_Dialog (void);
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPLanMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPLanMenuClass : public MenuDialogClass
- {
- public:
- MPLanMenuClass (void) :
- MenuDialogClass (IDD_MULTIPLAY_CS_SEL) {}
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void On_Destroy (void);
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPInternetCSMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPInternetCSMenuClass : public MenuDialogClass
- {
- public:
- MPInternetCSMenuClass (void) :
- MenuDialogClass (IDD_MULTIPLAY_WWOL_CS_SEL) {}
- };
- /*
- ////////////////////////////////////////////////////////////////
- //
- // MPGameMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPGameMenuClass : public MenuDialogClass
- {
- public:
- MPGameMenuClass (void) :
- MenuDialogClass (IDD_MULTIPLAY_GAME_TYPE) {}
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPServerConfigClass
- //
- ////////////////////////////////////////////////////////////////
- class MPServerConfigClass : public MenuDialogClass
- {
- public:
- MPServerConfigClass (void) :
- MenuDialogClass (IDD_MULTIPLAY_SERVER_CONFIG) {}
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- };
- ////////////////////////////////////////////////////////////////
- //
- // MPServerStartMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPServerStartMenuClass : public MenuDialogClass
- {
- public:
- MPServerStartMenuClass (void) :
- //IsServer (true),
- MenuDialogClass (IDD_MULTIPLAY_START_GAME) {}
-
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void Start_Game (void);
- //bool IsServer;
- };
- */
- ////////////////////////////////////////////////////////////////
- //
- // MPJoinMenuClass
- //
- ////////////////////////////////////////////////////////////////
- class MPJoinMenuClass : public MenuDialogClass
- {
- public:
- MPJoinMenuClass (void) :
- MenuDialogClass (IDD_MULTIPLAY_JOIN_GAME) {}
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- void Update_Game_List (void);
- void On_Frame_Update (void);
- };
- ////////////////////////////////////////////////////////////////
- //
- // DeathOptionsPopupClass
- //
- ////////////////////////////////////////////////////////////////
- class DeathOptionsPopupClass : public PopupDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- DeathOptionsPopupClass (void) :
- PopupDialogClass (IDD_DEATH_OPTIONS) {}
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- };
- ////////////////////////////////////////////////////////////////
- //
- // FailedOptionsPopupClass
- //
- ////////////////////////////////////////////////////////////////
- class FailedOptionsPopupClass : public PopupDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- FailedOptionsPopupClass (void) :
- PopupDialogClass (IDD_FAILED_OPTIONS) {}
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- };
- ////////////////////////////////////////////////////////////////
- //
- // EditWheeledVehicleDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class EditWheeledVehicleDialogClass : public PopupDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- EditWheeledVehicleDialogClass (WheeledVehicleDefClass * def,float wheel_radius);
- ~EditWheeledVehicleDialogClass(void);
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- protected:
- WheeledVehicleDefClass * VehicleDef;
- float WheelRadius;
- };
- ////////////////////////////////////////////////////////////////
- //
- // EditTrackedVehicleDialogClass
- //
- ////////////////////////////////////////////////////////////////
- class EditTrackedVehicleDialogClass : public PopupDialogClass
- {
- public:
- ////////////////////////////////////////////////////////////////
- // Public constructors/destructors
- ////////////////////////////////////////////////////////////////
- EditTrackedVehicleDialogClass (TrackedVehicleDefClass * def,float wheel_radius);
- ~EditTrackedVehicleDialogClass(void);
- void On_Init_Dialog (void);
- void On_Command (int ctrl_id, int mesage_id, DWORD param);
- protected:
- TrackedVehicleDefClass * VehicleDef;
- float WheelRadius;
- };
- #endif //__DIALOG_TESTS_H
|