33*/
44
55#include " OpenSHC/AI/AICState.hpp"
6- #include " OpenSHC/AI/AINervousDestroyBuildingCategoryInt .hpp"
7- #include " OpenSHC/AI/AIUnitBehaviourTypeInt .hpp"
8- #include " OpenSHC/AI/AIVUnitTypeInt .hpp"
9- #include " OpenSHC/Commands/CommandBuildingTypeInt .hpp"
6+ #include " OpenSHC/AI/AINervousDestroyBuildingCategory .hpp"
7+ #include " OpenSHC/AI/AIUnitBehaviourType .hpp"
8+ #include " OpenSHC/AI/AIVUnitType .hpp"
9+ #include " OpenSHC/Commands/CommandBuildingType .hpp"
1010#include " OpenSHC/Game/Player/PlayerID.hpp"
11- #include " OpenSHC/Game/Resources/ResourceTypeInt .hpp"
12- #include " OpenSHC/Map/Units/UnitTypeInt .hpp"
11+ #include " OpenSHC/Game/Resources/ResourceType .hpp"
12+ #include " OpenSHC/Map/Units/UnitType .hpp"
1313#include " OpenSHC/WindowsHelper/Enums/BOOLEnum.hpp"
1414namespace OpenSHC {
1515namespace AI {
1616 namespace AICState_Func {
1717
18- using OpenSHC::AI ::AINervousDestroyBuildingCategoryInt ;
19- using OpenSHC::AI ::AIUnitBehaviourTypeInt ;
20- using OpenSHC::AI ::AIVUnitTypeInt ;
21- using OpenSHC::Commands::CommandBuildingTypeInt ;
18+ using OpenSHC::AI ::AINervousDestroyBuildingCategory ;
19+ using OpenSHC::AI ::AIUnitBehaviourType ;
20+ using OpenSHC::AI ::AIVUnitType ;
21+ using OpenSHC::Commands::CommandBuildingType ;
2222 using OpenSHC::Game::Player::PlayerID;
23- using OpenSHC::Game::Resources::ResourceTypeInt ;
24- using OpenSHC::Map::Units::UnitTypeInt ;
23+ using OpenSHC::Game::Resources::ResourceType ;
24+ using OpenSHC::Map::Units::UnitType ;
2525 using OpenSHC::WindowsHelper::Enums::BOOLEnum;
2626
2727 MACRO_FUNCTION_RESOLVER (void (AICState::*)(), false , Address::SHC_3BB0A8C1_0x004C6D30, &AICState::wipeAICMemory)
@@ -147,15 +147,15 @@ namespace AI {
147147 uint (AICState::*)(PlayerID), false, Address::SHC_3BB0A8C1_0x004CB540, &AICState::aiShouldBuildPitchrig)
148148 aiShouldBuildPitchrig;
149149
150- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(PlayerID, CommandBuildingTypeInt ), false,
150+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(PlayerID, CommandBuildingType ), false,
151151 Address::SHC_3BB0A8C1_0x004CB5B0, &AICState::shouldNotBeBuildingHovel)
152152 shouldNotBeBuildingHovel;
153153
154- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingTypeInt ), false,
154+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingType ), false,
155155 Address::SHC_3BB0A8C1_0x004CB610, &AICState::shouldWaitWithBuildingNegativeFearFactor)
156156 shouldWaitWithBuildingNegativeFearFactor;
157157
158- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingTypeInt ), false,
158+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingType ), false,
159159 Address::SHC_3BB0A8C1_0x004CB700, &AICState::shouldWaitWithBuildingAPositiveFearFactor)
160160 shouldWaitWithBuildingAPositiveFearFactor;
161161
@@ -171,7 +171,7 @@ namespace AI {
171171 &AICState::destroyBuildingIfNoWorker)
172172 destroyBuildingIfNoWorker;
173173
174- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingTypeInt ), false,
174+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingType ), false,
175175 Address::SHC_3BB0A8C1_0x004CB9F0, &AICState::shouldNotBuildMarketArmoryGranaryBarracksMercenarypost)
176176 shouldNotBuildMarketArmoryGranaryBarracksMercenarypost;
177177
@@ -183,19 +183,19 @@ namespace AI {
183183 &AICState::setupWorkshopProductionType)
184184 setupWorkshopProductionType;
185185
186- MACRO_FUNCTION_RESOLVER (void (AICState::*)( int , ResourceTypeInt, int ), false, Address::SHC_3BB0A8C1_0x004CBFA0,
187- &AICState::sellGoods)
186+ MACRO_FUNCTION_RESOLVER (
187+ void (AICState::*)( int , ResourceType, int ), false, Address::SHC_3BB0A8C1_0x004CBFA0, &AICState::sellGoods)
188188 sellGoods;
189189
190- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , ResourceTypeInt , int ), false,
191- Address::SHC_3BB0A8C1_0x004CC000, &AICState::buyGoods)
190+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , ResourceType , int ), false, Address::SHC_3BB0A8C1_0x004CC000 ,
191+ &AICState::buyGoods)
192192 buyGoods;
193193
194- MACRO_FUNCTION_RESOLVER (AIUnitBehaviourTypeInt (AICState::*)(int ), false, Address::SHC_3BB0A8C1_0x004CC070,
194+ MACRO_FUNCTION_RESOLVER (AIUnitBehaviourType (AICState::*)(int ), false, Address::SHC_3BB0A8C1_0x004CC070,
195195 &AICState::randomlySelectAttackUnitTypeToRecruit)
196196 randomlySelectAttackUnitTypeToRecruit;
197197
198- MACRO_FUNCTION_RESOLVER (UnitTypeInt (AICState::*)(int , AIUnitBehaviourTypeInt ), false,
198+ MACRO_FUNCTION_RESOLVER (UnitType (AICState::*)(int , AIUnitBehaviourType ), false,
199199 Address::SHC_3BB0A8C1_0x004CC250, &AICState::getUnitTypeForUnitBehaviourType)
200200 getUnitTypeForUnitBehaviourType;
201201
@@ -383,7 +383,7 @@ namespace AI {
383383 &AICState::processAttForceRallyPercentage)
384384 processAttForceRallyPercentage;
385385
386- MACRO_FUNCTION_RESOLVER (void (AICState::*)(CommandBuildingTypeInt ), false, Address::SHC_3BB0A8C1_0x004CEFD0,
386+ MACRO_FUNCTION_RESOLVER (void (AICState::*)(CommandBuildingType ), false, Address::SHC_3BB0A8C1_0x004CEFD0,
387387 &AICState::useAITribe_0x12_toPlaceSiegeTentsAndAssignEngineers)
388388 useAITribe_0x12_toPlaceSiegeTentsAndAssignEngineers;
389389
@@ -479,12 +479,12 @@ namespace AI {
479479 &AICState::teamIsWeakRelativeToEnemy)
480480 teamIsWeakRelativeToEnemy;
481481
482- MACRO_FUNCTION_RESOLVER (void (AICState::*)(int , AINervousDestroyBuildingCategoryInt ), false,
482+ MACRO_FUNCTION_RESOLVER (void (AICState::*)(int , AINervousDestroyBuildingCategory ), false,
483483 Address::SHC_3BB0A8C1_0x004D0280, &AICState::destroyAnyBuildingInCategory)
484484 destroyAnyBuildingInCategory;
485485
486- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , ResourceTypeInt , int ), false,
487- Address::SHC_3BB0A8C1_0x004D0520, &AICState::isResourceLargerOrEqualThanMinimumGoodsRequiredAfterTrade)
486+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , ResourceType , int ), false, Address::SHC_3BB0A8C1_0x004D0520 ,
487+ &AICState::isResourceLargerOrEqualThanMinimumGoodsRequiredAfterTrade)
488488 isResourceLargerOrEqualThanMinimumGoodsRequiredAfterTrade;
489489
490490 MACRO_FUNCTION_RESOLVER (
@@ -586,7 +586,7 @@ namespace AI {
586586 void (AICState::*)(uint), false, Address::SHC_3BB0A8C1_0x004D1A00, &AICState::decideOnTribeAttackLocation)
587587 decideOnTribeAttackLocation;
588588
589- MACRO_FUNCTION_RESOLVER (void (AICState::*)(int , ResourceTypeInt , undefined4), false,
589+ MACRO_FUNCTION_RESOLVER (void (AICState::*)(int , ResourceType , undefined4), false,
590590 Address::SHC_3BB0A8C1_0x004D1F00, &AICState::requestGoods)
591591 requestGoods;
592592
@@ -630,7 +630,7 @@ namespace AI {
630630 void (AICState::*)(int ), false, Address::SHC_3BB0A8C1_0x004D2A70, &AICState::aiGiveRaidInstructions)
631631 aiGiveRaidInstructions;
632632
633- MACRO_FUNCTION_RESOLVER (void (AICState::*)(int , AIVUnitTypeInt , int ), false, Address::SHC_3BB0A8C1_0x004D2E00,
633+ MACRO_FUNCTION_RESOLVER (void (AICState::*)(int , AIVUnitType , int ), false, Address::SHC_3BB0A8C1_0x004D2E00,
634634 &AICState::sendTribeToAIVLocationSlot)
635635 sendTribeToAIVLocationSlot;
636636
@@ -726,19 +726,19 @@ namespace AI {
726726 void (AICState::*)(), false, Address::SHC_3BB0A8C1_0x004D53E0, &AICState::updateAIBehaviour)
727727 updateAIBehaviour;
728728
729- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingTypeInt ), false,
729+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingType ), false,
730730 Address::SHC_3BB0A8C1_0x004ECA30, &AICState::shouldNotBeBuildingGranary)
731731 shouldNotBeBuildingGranary;
732732
733- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(PlayerID, CommandBuildingTypeInt ), false,
733+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(PlayerID, CommandBuildingType ), false,
734734 Address::SHC_3BB0A8C1_0x004ECA60, &AICState::shouldNotBeBuildingArmoury)
735735 shouldNotBeBuildingArmoury;
736736
737- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingTypeInt ), false,
737+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(int , CommandBuildingType ), false,
738738 Address::SHC_3BB0A8C1_0x004ECA90, &AICState::shouldNotBuildKillingPits)
739739 shouldNotBuildKillingPits;
740740
741- MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(undefined4, CommandBuildingTypeInt ), false,
741+ MACRO_FUNCTION_RESOLVER (BOOLEnum (AICState::*)(undefined4, CommandBuildingType ), false,
742742 Address::SHC_3BB0A8C1_0x004ECAB0, &AICState::woodCuttersHutWhileNoWoodAvailable)
743743 woodCuttersHutWhileNoWoodAvailable;
744744
0 commit comments