Bazaar developer reference

CvPlayerPolicies::FlavorUpdate()

Defined in
CvPolicyClasses.cpp, line 2793
Class
CvPlayerPolicies
Hook name
CivHooks::CvPlayerPolicies_FlavorUpdate
Overrides
CvFlavorRecipient::FlavorUpdate()

Hooks

static bool BeforeCvPlayerPolicies_FlavorUpdate(CvPlayerPolicies* self);static void AfterCvPlayerPolicies_FlavorUpdate(CvPlayerPolicies* self);static void ReplaceCvPlayerPolicies_FlavorUpdate(void (*original)(CvPlayerPolicies*), CvPlayerPolicies* self);CivRegisterBefore<CivHooks::CvPlayerPolicies_FlavorUpdate>(host, &BeforeCvPlayerPolicies_FlavorUpdate);CivRegisterAfter<CivHooks::CvPlayerPolicies_FlavorUpdate>(host, &AfterCvPlayerPolicies_FlavorUpdate);CivRegisterReplace<CivHooks::CvPlayerPolicies_FlavorUpdate>(host, &ReplaceCvPlayerPolicies_FlavorUpdate);

Code

2792/// Respond to a new set of flavor values2793void CvPlayerPolicies::FlavorUpdate()2794{2795	AddFlavorAsStrategies(GC.getPOLICY_WEIGHT_PROPAGATION_PERCENT());2796}

Calls