1. [CODE]constants.h:237:2: error: conflicting declaration 'typedef int TSkillTree'
  2. 237 | }TSkillTree;
  3. | ^~~~~~~~~~
  4. In file included from BattleArena.cpp:3:
  5. constants.h:237:2: note: previous declaration as 'typedef struct SSkillTree TSkillTree'
  6. 237 | }TSkillTree;
  7. | ^~~~~~~~~~
  8. In file included from char.h:10,
  9. from BattleArena.cpp:7:
  10. constants.h:214:16: error: redefinition of 'struct SSkillTree'
  11. 214 | typedef struct SSkillTree
  12. | ^~~~~~~~~~
  13. In file included from BattleArena.cpp:3:
  14. constants.h:214:16: note: previous definition of 'struct SSkillTree'
  15. 214 | typedef struct SSkillTree
  16. | ^~~~~~~~~~
  17. In file included from char.h:10,
  18. from BattleArena.cpp:7:
  19. constants.h:237:2: error: conflicting declaration 'typedef int TSkillTree'
  20. 237 | }TSkillTree;
  21. | ^~~~~~~~~~
  22. In file included from BattleArena.cpp:3:
  23. constants.h:237:2: note: previous declaration as 'typedef struct SSkillTree TSkillTree'
  24. 237 | }TSkillTree;
  25. | ^~~~~~~~~~
  26. In file included from BattleArena.cpp:7:
  27. char.h: In member function 'void CHARACTER::SetMaxStamina(int)':
  28. char.h:928:51: error: 'int character_point_instant::iMaxStamina' is protected within this context
  29. 928 | void SetMaxStamina(int iVal) { m_pointsInstant.iMaxStamina = iVal; }
  30. | ^~~~~~~~~~~
  31. char.h:602:9: note: declared protected here
  32. 602 | int iMaxStamina;
  33. | ^~~~~~~~~~~
  34. char.h: In member function 'int CHARACTER::GetMaxStamina() const':
  35. char.h:929:56: error: 'int character_point_instant::iMaxStamina' is protected within this context
  36. 929 | int GetMaxStamina() const { return m_pointsInstant.iMaxStamina; }
  37. | ^~~~~~~~~~~
  38. char.h:602:9: note: declared protected here
  39. 602 | int iMaxStamina;
  40. | ^~~~~~~~~~~
  41. char.h: In member function 'bool CHARACTER::IsBlockMode(BYTE) const':
  42. char.h:1025:65: error: 'BYTE character_point_instant::bBlockMode' is protected within this context
  43. 1025 | bool IsBlockMode(BYTE bFlag) const { return (m_pointsInstant.bBlockMode & bFlag) ? true : false; }
  44. | ^~~~~~~~~~
  45. char.h:604:9: note: declared protected here
  46. 604 | BYTE bBlockMode;
  47. | ^~~~~~~~~~
  48. In file included from BattleArena.cpp:7:
  49. char.h: In member function 'CItem** CHARACTER::GetCubeItem()':
  50. char.h:2348:49: error: 'CItem* character_point_instant::pCubeItems [24]' is protected within this context
  51. 2348 | LPITEM* GetCubeItem() { return m_pointsInstant.pCubeItems; }
  52. | ^~~~~~~~~~
  53. In file included from BattleArena.cpp:7:
  54. char.h:585:11: note: declared protected here
  55. 585 | LPITEM pCubeItems[CUBE_MAX_NUM];
  56. | ^~~~~~~~~~
  57. In file included from BattleArena.cpp:7:
  58. char.h: In member function 'bool CHARACTER::IsCubeOpen() const':
  59. char.h:2349:52: error: 'CHARACTER* character_point_instant::pCubeNpc' is protected within this context
  60. 2349 | bool IsCubeOpen() const { return (m_pointsInstant.pCubeNpc ? true : false); }
  61. | ^~~~~~~~
  62. In file included from BattleArena.cpp:7:
  63. char.h:586:15: note: declared protected here
  64. 586 | LPCHARACTER pCubeNpc;
  65. | ^~~~~~~~
  66. In file included from BattleArena.cpp:7:
  67. char.h: In member function 'void CHARACTER::SetCubeNpc(LPCHARACTER)':
  68. char.h:2350:53: error: 'CHARACTER* character_point_instant::pCubeNpc' is protected within this context
  69. 2350 | void SetCubeNpc(LPCHARACTER npc) { m_pointsInstant.pCubeNpc = npc; }
  70. | ^~~~~~~~
  71. In file included from BattleArena.cpp:7:
  72. char.h:586:15: note: declared protected here
  73. 586 | LPCHARACTER pCubeNpc;
  74. | ^~~~~~~~
  75. In file included from BattleArena.cpp:7:
  76. char.h: In member function 'CEntity* CHARACTER::DragonSoul_RefineWindow_GetOpener()':
  77. char.h:2553:73: error: 'CEntity* character_point_instant::m_pDragonSoulRefineWindowOpener' is protected within this context
  78. 2553 | LPENTITY DragonSoul_RefineWindow_GetOpener() { return m_pointsInstant.m_pDragonSoulRefineWindowOpener; }
  79. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  80. In file included from BattleArena.cpp:7:
  81. char.h:607:12: note: declared protected here
  82. 607 | LPENTITY m_pDragonSoulRefineWindowOpener;
  83. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. In file included from BattleArena.cpp:7:
  85. char.h: In member function 'CItem** CHARACTER::GetAuraMaterials()':
  86. char.h:2635:54: error: 'CItem* character_point_instant::pAuraMaterials [2]' is protected within this context
  87. 2635 | LPITEM* GetAuraMaterials() { return m_pointsInstant.pAuraMaterials; }
  88. | ^~~~~~~~~~~~~~
  89. In file included from BattleArena.cpp:7:
  90. char.h:591:12: note: declared protected here
  91. 591 | LPITEM pAuraMaterials[AURA_WINDOW_MAX_MATERIALS];
  92. | ^~~~~~~~~~~~~~
  93. In file included from BattleArena.cpp:7:
  94. char.h: In member function 'CItem** CHARACTER::GetClWindowMaterials()':
  95. char.h:2664:58: error: 'CItem* character_point_instant::pClMaterials [3]' is protected within this context
  96. 2664 | LPITEM* GetClWindowMaterials() { return m_pointsInstant.pClMaterials; }
  97. | ^~~~~~~~~~~~
  98. In file included from BattleArena.cpp:7:
  99. char.h:594:12: note: declared protected here
  100. 594 | LPITEM pClMaterials[CL_WINDOW_MAX_MATERIALS];
  101. | ^~~~~~~~~~~~
  102. [/CODE]

12