CvGrandStrategyAI::GetActiveGrandStrategy() const
- Defined in
- CvGrandStrategyAI.cpp, line 803
- Class
- CvGrandStrategyAI
- Hook name
CivHooks::CvGrandStrategyAI_GetActiveGrandStrategy
Hooks
static bool BeforeCvGrandStrategyAI_GetActiveGrandStrategy(const CvGrandStrategyAI* self, AIGrandStrategyTypes& result);static void AfterCvGrandStrategyAI_GetActiveGrandStrategy(const CvGrandStrategyAI* self, AIGrandStrategyTypes& result);static AIGrandStrategyTypes ReplaceCvGrandStrategyAI_GetActiveGrandStrategy(AIGrandStrategyTypes (*original)(const CvGrandStrategyAI*), const CvGrandStrategyAI* self);CivRegisterBefore<CivHooks::CvGrandStrategyAI_GetActiveGrandStrategy>(host, &BeforeCvGrandStrategyAI_GetActiveGrandStrategy);CivRegisterAfter<CivHooks::CvGrandStrategyAI_GetActiveGrandStrategy>(host, &AfterCvGrandStrategyAI_GetActiveGrandStrategy);CivRegisterReplace<CivHooks::CvGrandStrategyAI_GetActiveGrandStrategy>(host, &ReplaceCvGrandStrategyAI_GetActiveGrandStrategy);
Code
802/// Returns the Active Grand Strategy for this Player: how am I trying to win right now?803AIGrandStrategyTypes CvGrandStrategyAI::GetActiveGrandStrategy() const804{805 return m_eActiveGrandStrategy;806}
Called by
33 functions in 14 files
- CvCityCitizens::DoTurn()
- CvCitySpecializationAI::LogSpecializationUpdate(CitySpecializationUpdateType)
- CvCitySpecializationAI::WeightProductionSubtypes(int, int)
- CvCitySpecializationAI::WeightSpecializations()
- CvPlayerCulture::GetArchaeologyChoice(CvPlot *)
- CvDealAI::GetOpenBordersValue(bool, PlayerTypes, bool)
- CvDiplomacyAI::DoUpdateVictoryDisputeLevels()
- CvDiplomacyAI::IsGoingForCultureVictory()
- CvDiplomacyAI::IsGoingForDiploVictory()
- CvDiplomacyAI::IsGoingForSpaceshipVictory()
- CvDiplomacyAI::IsGoingForWorldConquest()
- CvDiplomacyAI::IsWantsOpenBordersWithPlayer(PlayerTypes)
- CvDiplomacyAI::LogGrandStrategy(CvString &)
- EconomicAIHelpers::IsTestStrategy_ExpandLikeCrazy(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_GS_Conquest(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_GS_Culture(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_GS_Diplomacy(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_GS_Spaceship(CvPlayer *)
- CvGame::LogGameState(bool)
- CvGrandStrategyAI::DoTurn()
- CvGrandStrategyAI::LogGrandStrategies(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &)
- CvGrandStrategyAI::LogGuessOtherPlayerGrandStrategy(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &, PlayerTypes)
- CvMilitaryAI::DisbandObsoleteUnits()
- CvMilitaryAI::UpdateBaseData()
- MilitaryAIHelpers::ComputeRecommendedNavySize(CvPlayer *)
- MilitaryAIHelpers::IsTestStrategy_EnoughMilitaryUnits(CvPlayer *)
- MilitaryAIHelpers::IsTestStrategy_WarMobilization(MilitaryAIStrategyTypes, CvPlayer *)
- CvPlayerAI::AI_chooseFreeGreatPerson()
- CvPolicyAI::ChooseNextPolicy(CvPlayer *)
- CvReligionAI::GetDesiredFaithGreatPerson() const
- CvPlayerTraits::ChooseMayaBoost()
- CvLeagueAI::ScoreVoteChoicePlayer(CvProposal *, int, bool)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)