Bazaar developer reference

CvPlayer::changeUnitFortificationModifier(int)

Defined in
CvPlayer.cpp, line 15239
Class
CvPlayer
Hook name
CivHooks::CvPlayer_changeUnitFortificationModifier

Hooks

static bool BeforeCvPlayer_changeUnitFortificationModifier(CvPlayer* self, int iChange);static void AfterCvPlayer_changeUnitFortificationModifier(CvPlayer* self, int iChange);static void ReplaceCvPlayer_changeUnitFortificationModifier(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_changeUnitFortificationModifier>(host, &BeforeCvPlayer_changeUnitFortificationModifier);CivRegisterAfter<CivHooks::CvPlayer_changeUnitFortificationModifier>(host, &AfterCvPlayer_changeUnitFortificationModifier);CivRegisterReplace<CivHooks::CvPlayer_changeUnitFortificationModifier>(host, &ReplaceCvPlayer_changeUnitFortificationModifier);

Code

15239void CvPlayer::changeUnitFortificationModifier(int iChange)15240{15241	m_iUnitFortificationModifier = (m_iUnitFortificationModifier + iChange);15242}

Calls

Called by