SPECIAL.H 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /* $Header: /CounterStrike/SPECIAL.H 1 3/03/97 10:25a Joe_bostic $ */
  15. /***********************************************************************************************
  16. *** 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 ***
  17. ***********************************************************************************************
  18. * *
  19. * Project Name : Command & Conquer *
  20. * *
  21. * File Name : SPECIAL.H *
  22. * *
  23. * Programmer : Joe L. Bostic *
  24. * *
  25. * Start Date : 02/27/95 *
  26. * *
  27. * Last Update : February 27, 1995 [JLB] *
  28. * *
  29. *---------------------------------------------------------------------------------------------*
  30. * Functions: *
  31. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  32. #ifndef SPECIAL_H
  33. #define SPECIAL_H
  34. class SpecialClass
  35. {
  36. public:
  37. /*
  38. ** This initializes all members just like a constructor. A constructor
  39. ** cannot be used for this class because it is part of a union.
  40. */
  41. void Init(void);
  42. /*
  43. ** If the shroud should regenerated, then this flag will be true.
  44. */
  45. unsigned IsShadowGrow:1;
  46. /*
  47. ** Controls the speedy build option -- used for testing.
  48. */
  49. unsigned IsSpeedBuild:1;
  50. /*
  51. ** If from install, then play the special installation movie and
  52. ** skip asking them what type of game they want to play.
  53. */
  54. unsigned IsFromInstall:1;
  55. /*
  56. ** If capture the flag mode is on, this flag will be true. With this
  57. ** flag enabled, then the flag is initially placed at the start of
  58. ** the scenario.
  59. */
  60. unsigned IsCaptureTheFlag:1;
  61. /*
  62. ** This flags controls whether weapons are inert. An inert weapon doesn't do any
  63. ** damage. Effectively, if this is true, then the units never die.
  64. */
  65. unsigned IsInert:1;
  66. /*
  67. ** If wheeled vehicles should do a 3-point turn when rotating in place, then
  68. ** this flag is true.
  69. */
  70. unsigned IsThreePoint:1;
  71. /*
  72. ** If Tiberium is allowed to spread and grow, then these flags will be true.
  73. ** These are duplicated from the rules.ini file and also controlled by the
  74. ** multiplayer dialog box.
  75. */
  76. unsigned IsTGrowth:1;
  77. unsigned IsTSpread:1;
  78. /*
  79. ** Flag that we were spawned from WChat.
  80. */
  81. unsigned IsFromWChat:1;
  82. /*
  83. ** If this flag is true, then the construction yard can undeploy back into an MCV.
  84. ** Used to override the rules setting.
  85. */
  86. unsigned UseMCVDeploy:1;
  87. unsigned IsMCVDeploy:1;
  88. /*
  89. ** New anti-griefing early win mode. ST - 1/31/2020 3:42PM
  90. */
  91. unsigned IsEarlyWin:1;
  92. /*
  93. ** New modern balance setting.
  94. */
  95. unsigned ModernBalance:1;
  96. /*
  97. ** Some additional padding in case we need to add data to the class and maintain backwards compatibility for save/load
  98. */
  99. // MBL 07.21.2020 - https://jaas.ea.com/browse/TDRA-7537
  100. // Loading save files from Live and July Patch 3 Beta versions results in a crash
  101. // Fixes issue from Change 738397 2020/07/17 14:06:03
  102. //
  103. // unsigned char SaveLoadPadding[128]; // Note: Never changed to 127 like TD did
  104. //
  105. // unsigned char SaveLoadPadding[124]; // Trying 124 like we did with TD - Failed
  106. unsigned char SaveLoadPadding[128]; // Works with With last weeks saves (7/16/2020) and newest saves; Skyler says go with this.
  107. };
  108. #endif