Bazaar developer reference

CvPlayer::ChangeNumPolicies(int)

Defined in
CvPlayer.cpp, line 27102
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeNumPolicies

Hooks

static bool BeforeCvPlayer_ChangeNumPolicies(CvPlayer* self, int iValue);static void AfterCvPlayer_ChangeNumPolicies(CvPlayer* self, int iValue);static void ReplaceCvPlayer_ChangeNumPolicies(void (*original)(CvPlayer*, int), CvPlayer* self, int iValue);CivRegisterBefore<CivHooks::CvPlayer_ChangeNumPolicies>(host, &BeforeCvPlayer_ChangeNumPolicies);CivRegisterAfter<CivHooks::CvPlayer_ChangeNumPolicies>(host, &AfterCvPlayer_ChangeNumPolicies);CivRegisterReplace<CivHooks::CvPlayer_ChangeNumPolicies>(host, &ReplaceCvPlayer_ChangeNumPolicies);

Code

27101/// Changes how many Policies this Player has constructed27102void CvPlayer::ChangeNumPolicies(int iValue)27103{27104	if(iValue != 0)27105	{27106		m_iNumPolicies += iValue;27107	}27108}

Calls

Called by