Bazaar developer reference

CvCity::setHighestPopulation(int)

Defined in
CvCity.cpp, line 8047
Class
CvCity
Hook name
CivHooks::CvCity_setHighestPopulation

Hooks

static bool BeforeCvCity_setHighestPopulation(CvCity* self, int iNewValue);static void AfterCvCity_setHighestPopulation(CvCity* self, int iNewValue);static void ReplaceCvCity_setHighestPopulation(void (*original)(CvCity*, int), CvCity* self, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setHighestPopulation>(host, &BeforeCvCity_setHighestPopulation);CivRegisterAfter<CivHooks::CvCity_setHighestPopulation>(host, &AfterCvCity_setHighestPopulation);CivRegisterReplace<CivHooks::CvCity_setHighestPopulation>(host, &ReplaceCvCity_setHighestPopulation);

Code

8047void CvCity::setHighestPopulation(int iNewValue)8048{8049	VALIDATE_OBJECT8050	m_iHighestPopulation = iNewValue;8051	CvAssert(getHighestPopulation() >= 0);8052}

Calls

Called by