Bazaar developer reference

CvPlayer::changeExpInBorderModifier(int)

Defined in
CvPlayer.cpp, line 15986
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeExpInBorderModifier

Hooks

static bool BeforeCvPlayer_changeExpInBorderModifier(CvPlayer* self, int iChange);static void AfterCvPlayer_changeExpInBorderModifier(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeExpInBorderModifier(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeExpInBorderModifier>(host, &BeforeCvPlayer_changeExpInBorderModifier);CivRegisterAfter<CivHooks::CvPlayer_changeExpInBorderModifier>(host, &AfterCvPlayer_changeExpInBorderModifier);CivRegisterReplace<CivHooks::CvPlayer_changeExpInBorderModifier>(host, &ReplaceCvPlayer_changeExpInBorderModifier);

Code

15986void CvPlayer::changeExpInBorderModifier(int iChange)15987{15988	if(iChange != 0)15989	{15990		m_iExpInBorderModifier += iChange;15991		CvAssert(getExpInBorderModifier() >= 0);15992	}15993}

Calls

Called by