Bazaar developer reference

CvPlayer::GetFaithPerTurnFromMinorCivs() const

Defined in
CvPlayer.cpp, line 11320
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetFaithPerTurnFromMinorCivs

Hooks

static bool BeforeCvPlayer_GetFaithPerTurnFromMinorCivs(const CvPlayer* self, int& result);static void AfterCvPlayer_GetFaithPerTurnFromMinorCivs(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetFaithPerTurnFromMinorCivs(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetFaithPerTurnFromMinorCivs>(host, &BeforeCvPlayer_GetFaithPerTurnFromMinorCivs);CivRegisterAfter<CivHooks::CvPlayer_GetFaithPerTurnFromMinorCivs>(host, &AfterCvPlayer_GetFaithPerTurnFromMinorCivs);CivRegisterReplace<CivHooks::CvPlayer_GetFaithPerTurnFromMinorCivs>(host, &ReplaceCvPlayer_GetFaithPerTurnFromMinorCivs);

Code

11319/// Faith per turn from Minor Civs11320int CvPlayer::GetFaithPerTurnFromMinorCivs() const11321{11322	int iFaithPerTurn = 0;11323	for(int iMinorLoop = MAX_MAJOR_CIVS; iMinorLoop < MAX_CIV_PLAYERS; iMinorLoop++)11324	{11325		iFaithPerTurn += GetFaithPerTurnFromMinor((PlayerTypes)iMinorLoop);11326	}11327	return iFaithPerTurn;11328}

Calls

Called by