BattleHonors.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. ** Command & Conquer Generals(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. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // FILE: BattleHonors.h /////////////////////////////////////////////////
  24. //-----------------------------------------------------------------------------
  25. //
  26. // Electronic Arts Pacific.
  27. //
  28. // Confidential Information
  29. // Copyright (C) 2002 - All Rights Reserved
  30. //
  31. //-----------------------------------------------------------------------------
  32. //
  33. // created: Sep 2002
  34. //
  35. // Filename: BattleHonors.h
  36. //
  37. // author: Chris Huybregts
  38. //
  39. // purpose:
  40. //
  41. //-----------------------------------------------------------------------------
  42. ///////////////////////////////////////////////////////////////////////////////
  43. #pragma once
  44. #ifndef __BATTLE_HONORS_H_
  45. #define __BATTLE_HONORS_H_
  46. //-----------------------------------------------------------------------------
  47. // SYSTEM INCLUDES ////////////////////////////////////////////////////////////
  48. //-----------------------------------------------------------------------------
  49. //-----------------------------------------------------------------------------
  50. // USER INCLUDES //////////////////////////////////////////////////////////////
  51. //-----------------------------------------------------------------------------
  52. //-----------------------------------------------------------------------------
  53. // FORWARD REFERENCES /////////////////////////////////////////////////////////
  54. //-----------------------------------------------------------------------------
  55. //-----------------------------------------------------------------------------
  56. // TYPE DEFINES ///////////////////////////////////////////////////////////////
  57. //-----------------------------------------------------------------------------
  58. enum
  59. {
  60. BATTLE_HONOR_LADDER_CHAMP = 0x0000001,
  61. BATTLE_HONOR_STREAK_3 = 0x0000002,
  62. //BATTLE_HONOR_STREAK_5 = 0x0000004,
  63. BATTLE_HONOR_STREAK_10 = 0x0000008,
  64. BATTLE_HONOR_STREAK_25 = 0x0000010,
  65. BATTLE_HONOR_LOYALTY_USA = 0x0000020,
  66. BATTLE_HONOR_LOYALTY_CHINA = 0x0000040,
  67. BATTLE_HONOR_LOYALTY_GLA = 0x0000200, // was 0x60 - not actually gonna work that way, eh?
  68. BATTLE_HONOR_BATTLE_TANK = 0x0000080,
  69. BATTLE_HONOR_AIR_WING = 0x0000100,
  70. //BATTLE_HONOR_SPECIAL_FORCES = 0x0000200,
  71. BATTLE_HONOR_ENDURANCE = 0x0000400,
  72. BATTLE_HONOR_CAMPAIGN_USA = 0x0000800, // not set in battle honors field in persistent storage
  73. BATTLE_HONOR_CAMPAIGN_CHINA = 0x0001000, // not set in battle honors field in persistent storage
  74. BATTLE_HONOR_CAMPAIGN_GLA = 0x0002000, // not set in battle honors field in persistent storage
  75. BATTLE_HONOR_BLITZ5 = 0x0004000,
  76. BATTLE_HONOR_BLITZ10 = 0x0008000,
  77. BATTLE_HONOR_FAIR_PLAY = 0x0010000,
  78. BATTLE_HONOR_APOCALYPSE = 0x0020000,
  79. BATTLE_HONOR_OFFICERSCLUB = 0x0040000,
  80. //BATTLE_HONOR_SOLO_USA_B = 0x0010000,
  81. //BATTLE_HONOR_SOLO_USA_S = 0x0020000,
  82. //BATTLE_HONOR_SOLO_USA_G = 0x0040000,
  83. BATTLE_HONOR_SOLO_CHINA_B = 0x0080000,
  84. BATTLE_HONOR_SOLO_CHINA_S = 0x0100000,
  85. BATTLE_HONOR_SOLO_CHINA_G = 0x0200000,
  86. BATTLE_HONOR_SOLO_GLA_B = 0x0400000,
  87. BATTLE_HONOR_SOLO_GLA_S = 0x0800000,
  88. BATTLE_HONOR_SOLO_GLA_G = 0x1000000,
  89. BATTLE_HONOR_CHALLENGE = 0x2000000, // not set in battle honors field in persistent storage
  90. BATTLE_HONOR_NOT_GAINED = 0x8000000 // This is set in tooltip item data to indicate that the honor isn't actually gained.
  91. };
  92. enum
  93. {
  94. BH_CHALLENGE_MASK_1 = 0x0001,
  95. BH_CHALLENGE_MASK_2 = 0x0002,
  96. BH_CHALLENGE_MASK_3 = 0x0004,
  97. BH_CHALLENGE_MASK_4 = 0x0008,
  98. BH_CHALLENGE_MASK_5 = 0x0010,
  99. BH_CHALLENGE_MASK_6 = 0x0020,
  100. BH_CHALLENGE_MASK_7 = 0x0040,
  101. };
  102. enum
  103. {
  104. MAX_BATTLE_HONOR_COLUMNS = 4,
  105. MAX_BATTLE_HONOR_IMAGE_WIDTH = 50,
  106. MAX_BATTLE_HONOR_IMAGE_HEIGHT = 51,
  107. };
  108. //-----------------------------------------------------------------------------
  109. // INLINING ///////////////////////////////////////////////////////////////////
  110. //-----------------------------------------------------------------------------
  111. //-----------------------------------------------------------------------------
  112. // EXTERNALS //////////////////////////////////////////////////////////////////
  113. //-----------------------------------------------------------------------------
  114. #endif // __BATTLE_HONORS_H_