CvGlobals::getPolicyBranchInfo(PolicyBranchTypes)
- Defined in
- CvGlobals.cpp, line 3703
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes
Hooks
static bool BeforeCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes(CvGlobals* self, PolicyBranchTypes ePolicyBranchNum, CvPolicyBranchEntry*& result);static void AfterCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes(CvGlobals* self, PolicyBranchTypes ePolicyBranchNum, CvPolicyBranchEntry*& result);static CvPolicyBranchEntry* ReplaceCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes(CvPolicyBranchEntry* (*original)(CvGlobals*, PolicyBranchTypes), CvGlobals* self, PolicyBranchTypes ePolicyBranchNum);CivRegisterBefore<CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes>(host, &BeforeCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes);CivRegisterAfter<CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes>(host, &AfterCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes);CivRegisterReplace<CivHooks::CvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes>(host, &ReplaceCvGlobals_getPolicyBranchInfo_with_PolicyBranchTypes);
Code
3703CvPolicyBranchEntry* CvGlobals::getPolicyBranchInfo(PolicyBranchTypes ePolicyBranchNum)3704{3705 CvAssert(ePolicyBranchNum > -1);3706 CvAssert(ePolicyBranchNum < GC.getNumPolicyBranchInfos());3707 return m_pPolicies->GetPolicyBranchEntries()[ePolicyBranchNum];3708}
Calls
- CvPolicyXMLEntries::GetPolicyBranchEntries()
std::vector::operator[]
Called by
- CvPlayerCulture::DoPublicOpinion()
- CvInfosSerializationHelper::Write(FDataStream &, const PolicyBranchTypes)
- CvInfosSerializationHelper::WriteHashed(FDataStream &, const PolicyBranchTypes)
- CvPolicyAI::ChooseNextPolicy(CvPlayer *)
- CvPolicyAI::IsBranchEffectiveInGame(PolicyBranchTypes)
- CvPolicyAI::WeighBranch(PolicyBranchTypes)
- CvPlayerPolicies::CanAdoptPolicy(PolicyTypes, bool) const
- CvPlayerPolicies::DoNewPolicyPickedForHistory(PolicyTypes)
- CvPlayerPolicies::DoSwitchToPolicyBranch(PolicyBranchTypes)
- CvPlayerPolicies::DoUnlockPolicyBranch(PolicyBranchTypes)
- CvPlayerPolicies::GetDominantPolicyBranchForTitle() const
- CvPlayerPolicies::GetLateGamePolicyTree() const
- CvPlayerPolicies::GetNumPoliciesCanBeAdopted()
- CvPlayerPolicies::Reset()
- CvPlayerPolicies::SetPolicy(PolicyTypes, bool, bool)
- CvPlayerPolicies::SetPolicyBranchBlocked(PolicyBranchTypes, bool)
- CvPlayerPolicies::SetPolicyBranchUnlocked(PolicyBranchTypes, bool, bool)
- PolicyHelpers::GetNumFreePolicies(PolicyBranchTypes)
- CvLeague::GetChoicesForDecision(ResolutionDecisionTypes, PlayerTypes)
- CvLeague::GetCurrentEffectsSummary(PlayerTypes)
- LeagueHelpers::GetTextForChoice(ResolutionDecisionTypes, int)
- SetPlayerInitialItems(CvPlayer &, const CvWorldBuilderMap::Player &)
- CvLuaPlayer::lGetOpinionTable(lua_State *)