Bazaar developer reference

CvPlayer::GetOccupiedPopulationUnhappinessMod() const

Defined in
CvPlayer.cpp, line 12935
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetOccupiedPopulationUnhappinessMod

Hooks

static bool BeforeCvPlayer_GetOccupiedPopulationUnhappinessMod(const CvPlayer* self, int& result);static void AfterCvPlayer_GetOccupiedPopulationUnhappinessMod(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetOccupiedPopulationUnhappinessMod(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetOccupiedPopulationUnhappinessMod>(host, &BeforeCvPlayer_GetOccupiedPopulationUnhappinessMod);CivRegisterAfter<CivHooks::CvPlayer_GetOccupiedPopulationUnhappinessMod>(host, &AfterCvPlayer_GetOccupiedPopulationUnhappinessMod);CivRegisterReplace<CivHooks::CvPlayer_GetOccupiedPopulationUnhappinessMod>(host, &ReplaceCvPlayer_GetOccupiedPopulationUnhappinessMod);

Code

12934/// Occupied Population Unhappiness Mod (-50 = 50% of normal)12935int CvPlayer::GetOccupiedPopulationUnhappinessMod() const12936{12937	return m_iOccupiedPopulationUnhappinessMod;12938}

Calls

Called by