CNCModeSettings.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. *
  20. * FILE
  21. * $Archive: /Commando/Code/Combat/CNCModeSettings.h $
  22. *
  23. * DESCRIPTION
  24. * Settings for CNC Multiplayer mode.
  25. *
  26. * PROGRAMMER
  27. * Denzil E. Long, Jr.
  28. * $Author: Patrick $
  29. *
  30. * VERSION INFO
  31. * $Revision: 5 $
  32. * $Modtime: 11/28/01 2:22p $
  33. *
  34. ******************************************************************************/
  35. #ifndef __CNCMODESETTINGS_H__
  36. #define __CNCMODESETTINGS_H__
  37. #include "Always.h"
  38. #include "Definition.h"
  39. class CNCModeSettingsDef :
  40. public DefinitionClass
  41. {
  42. public:
  43. enum {NUM_TEAMS = 2};
  44. CNCModeSettingsDef(void);
  45. virtual ~CNCModeSettingsDef(void);
  46. virtual uint32 Get_Class_ID(void) const;
  47. virtual PersistClass* Create(void) const;
  48. virtual bool Save(ChunkSaveClass& csave);
  49. virtual bool Load(ChunkLoadClass& cload);
  50. virtual const PersistFactoryClass& Get_Factory(void) const;
  51. static CNCModeSettingsDef* Get_Instance(void)
  52. {return _mInstance;}
  53. int Get_Announcement_Interval(void) const
  54. {return AnnouncementInterval;}
  55. int Get_Power_Offline_Report(int team) const;
  56. int Get_Purchase_Canceled_Report(int team) const;
  57. int Get_Insufficient_Funds_Report(int team) const;
  58. int Get_Constructing_Report(int team) const;
  59. int Get_Unit_Ready_Report(int team) const;
  60. int Get_Ion_Beacon_Deployed_Report(int team) const;
  61. int Get_Ion_Beacon_Disarmed_Report(int team) const;
  62. int Get_Ion_Beacon_Warning_Report(int team) const;
  63. int Get_Nuke_Beacon_Deployed_Report(int team) const;
  64. int Get_Nuke_Beacon_Disarmed_Report(int team) const;
  65. int Get_Nuke_Beacon_Warning_Report(int team) const;
  66. int Get_Radio_Command(int num) const;
  67. const char *Get_Radio_Command_Emot_Icon(int num) const;
  68. // Editable support
  69. DECLARE_EDITABLE(CNCModeSettingsDef, DefinitionClass);
  70. protected:
  71. static CNCModeSettingsDef* _mInstance;
  72. int AnnouncementInterval;
  73. int mPowerOfflineID[NUM_TEAMS];
  74. int mPurchaseCanceledID[NUM_TEAMS];
  75. int mInsufficientFundsID[NUM_TEAMS];
  76. int mConstructingID[NUM_TEAMS];
  77. int mUnitReadyID[NUM_TEAMS];
  78. int mIonBeaconDeployedID[NUM_TEAMS];
  79. int mIonBeaconDisarmedID[NUM_TEAMS];
  80. int mIonBeaconWarningID[NUM_TEAMS];
  81. int mNukeBeaconDeployedID[NUM_TEAMS];
  82. int mNukeBeaconDisarmedID[NUM_TEAMS];
  83. int mNukeBeaconWarningID[NUM_TEAMS];
  84. int mRadioCmds[30];
  85. StringClass mRadioCmdIcons[30];
  86. };
  87. #endif // __CNCMODESETTINGS_H__