CvGrandStrategyAI::GetPlayer()
- Defined in
- CvGrandStrategyAI.cpp, line 239
- Class
- CvGrandStrategyAI
- Hook name
CivHooks::CvGrandStrategyAI_GetPlayer
Hooks
static bool BeforeCvGrandStrategyAI_GetPlayer(CvGrandStrategyAI* self, CvPlayer*& result);static void AfterCvGrandStrategyAI_GetPlayer(CvGrandStrategyAI* self, CvPlayer*& result);static CvPlayer* ReplaceCvGrandStrategyAI_GetPlayer(CvPlayer* (*original)(CvGrandStrategyAI*), CvGrandStrategyAI* self);CivRegisterBefore<CivHooks::CvGrandStrategyAI_GetPlayer>(host, &BeforeCvGrandStrategyAI_GetPlayer);CivRegisterAfter<CivHooks::CvGrandStrategyAI_GetPlayer>(host, &AfterCvGrandStrategyAI_GetPlayer);CivRegisterReplace<CivHooks::CvGrandStrategyAI_GetPlayer>(host, &ReplaceCvGrandStrategyAI_GetPlayer);
Code
238/// Returns the Player object the Strategies are associated with239CvPlayer* CvGrandStrategyAI::GetPlayer()240{241 return m_pPlayer;242}
Called by
- CvGrandStrategyAI::DoGuessOtherPlayersActiveGrandStrategy()
- CvGrandStrategyAI::DoTurn()
- CvGrandStrategyAI::GetBaseGrandStrategyPriority(AIGrandStrategyTypes)
- CvGrandStrategyAI::GetConquestPriority()
- CvGrandStrategyAI::GetGuessOtherPlayerConquestPriority(PlayerTypes, int)
- CvGrandStrategyAI::GetUnitedNationsPriority()
- CvGrandStrategyAI::LogGrandStrategies(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &)
- CvGrandStrategyAI::LogGuessOtherPlayerGrandStrategy(const FStaticVector<int, 5, true, c_eCiv5GameplayDLL> &, PlayerTypes)