ReasoningMass
Chieftain
Anyone understand how the Economic Strategies work in CvEconomicAI.cpp?
I get the "IsTestStrategy" functions are called every turn in CvEconomicAI:: DoTurn() to test if each strategy should be used. After that though? There doesn't seem to be any code that states what the strategies actually do.
Of course checking the CIV5AIEconomicStrategies.xml just raises more questions. I think I understand the flavor modifiers (DoTurn() checks each used strategies flavor modifier and adds it to the players base flavors) but where exactly does the code handle things like <FirstTurnExecuted> or <CheckTriggerTurnCount>?
I get the "IsTestStrategy" functions are called every turn in CvEconomicAI:: DoTurn() to test if each strategy should be used. After that though? There doesn't seem to be any code that states what the strategies actually do.
Of course checking the CIV5AIEconomicStrategies.xml just raises more questions. I think I understand the flavor modifiers (DoTurn() checks each used strategies flavor modifier and adds it to the players base flavors) but where exactly does the code handle things like <FirstTurnExecuted> or <CheckTriggerTurnCount>?