dlgmpslaveservers.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. ** Command & Conquer Renegade(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. *** 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 ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : Combat *
  23. * *
  24. * $Archive:: /Commando/Code/Commando/dlgmpslaveservers.h $*
  25. * *
  26. * Author:: Steve Tall *
  27. * *
  28. * $Modtime:: 2/11/02 11:01a $*
  29. * *
  30. * $Revision:: 3 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #pragma once
  36. #ifndef _DLGMPSLAVESERVER_H
  37. #define _DLGMPSLAVESERVER_H
  38. #include "menudialog.h"
  39. #include "resource.h"
  40. #include "dialogresource.h"
  41. #include "slavemaster.h"
  42. class SlaveServerDialogClass : public MenuDialogClass
  43. {
  44. public:
  45. SlaveServerDialogClass(void);
  46. void On_Init_Dialog(void);
  47. void On_Command(int ctrl_id, int mesage_id, DWORD param);
  48. void On_Destroy(void);
  49. void Load_Settings(int slavenum);
  50. static void Set_Slave_Settings(StringClass *file_name);
  51. static void Set_Slave_Button(int slavenum);
  52. private:
  53. static unsigned long EnableIDs[MAX_SLAVES];
  54. static unsigned long NickIDs[MAX_SLAVES];
  55. static unsigned long PassIDs[MAX_SLAVES];
  56. static unsigned long SerialIDs[MAX_SLAVES];
  57. static unsigned long PortIDs[MAX_SLAVES];
  58. static unsigned long SettingsButtons[MAX_SLAVES];
  59. static char ServerSettingsFileNames[MAX_SLAVES][MAX_PATH];
  60. static int SlaveNumber;
  61. static SlaveServerDialogClass *Instance;
  62. };
  63. #endif //_DLGMPSLAVESERVER_H