BattleHonors.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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 = 0x00000001,
  61. BATTLE_HONOR_STREAK = 0x00000002,
  62. // BATTLE_HONOR_STREAK_5 = 0x00000004, // NOT TO BE REUSED
  63. // BATTLE_HONOR_STREAK_10 = 0x00000008, // NOT TO BE REUSED
  64. // BATTLE_HONOR_STREAK_25 = 0x00000010, // NOT TO BE REUSED
  65. BATTLE_HONOR_LOYALTY_USA = 0x00000020,
  66. BATTLE_HONOR_LOYALTY_CHINA = 0x00000040,
  67. BATTLE_HONOR_BATTLE_TANK = 0x00000080,
  68. BATTLE_HONOR_AIR_WING = 0x00000100,
  69. BATTLE_HONOR_LOYALTY_GLA = 0x00000200, // was 0x60 - not actually gonna work that way, eh?
  70. BATTLE_HONOR_ENDURANCE = 0x00000400,
  71. BATTLE_HONOR_CAMPAIGN_USA = 0x00000800, // not set in battle honors field in persistent storage
  72. BATTLE_HONOR_CAMPAIGN_CHINA = 0x00001000, // not set in battle honors field in persistent storage
  73. BATTLE_HONOR_CAMPAIGN_GLA = 0x00002000, // not set in battle honors field in persistent storage
  74. BATTLE_HONOR_BLITZ5 = 0x00004000,
  75. BATTLE_HONOR_BLITZ10 = 0x00008000,
  76. BATTLE_HONOR_FAIR_PLAY = 0x00010000,
  77. BATTLE_HONOR_APOCALYPSE = 0x00020000,
  78. BATTLE_HONOR_OFFICERSCLUB = 0x00040000,
  79. BATTLE_HONOR_DOMINATION = 0x00080000,
  80. BATTLE_HONOR_CHALLENGE_MODE = 0x00100000,
  81. BATTLE_HONOR_ULTIMATE = 0x00200000,
  82. BATTLE_HONOR_GLOBAL_GENERAL = 0x00400000,
  83. BATTLE_HONOR_DOMINATION_ONLINE = 0x00800000,
  84. BATTLE_HONOR_STREAK_ONLINE = 0x01000000,
  85. BATTLE_HONOR_CHALLENGE = 0x02000000, // not set in battle honors field in persistent storage
  86. //BATTLE_HONOR_FREE = 0x04000000,
  87. BATTLE_HONOR_NOT_GAINED = 0x08000000 // This is set in tooltip item data to indicate that the honor isn't actually gained.
  88. };
  89. enum
  90. {
  91. BH_CHALLENGE_MASK_1 = 0x0001,
  92. BH_CHALLENGE_MASK_2 = 0x0002,
  93. BH_CHALLENGE_MASK_3 = 0x0004,
  94. BH_CHALLENGE_MASK_4 = 0x0008,
  95. BH_CHALLENGE_MASK_5 = 0x0010,
  96. BH_CHALLENGE_MASK_6 = 0x0020,
  97. BH_CHALLENGE_MASK_7 = 0x0040,
  98. };
  99. enum
  100. {
  101. MAX_BATTLE_HONOR_COLUMNS = 4,
  102. MAX_BATTLE_HONOR_IMAGE_WIDTH = 40,
  103. MAX_BATTLE_HONOR_IMAGE_HEIGHT = 41,
  104. };
  105. //-----------------------------------------------------------------------------
  106. // INLINING ///////////////////////////////////////////////////////////////////
  107. //-----------------------------------------------------------------------------
  108. //-----------------------------------------------------------------------------
  109. // EXTERNALS //////////////////////////////////////////////////////////////////
  110. //-----------------------------------------------------------------------------
  111. #endif // __BATTLE_HONORS_H_