Bazaar developer reference

CvCity::SetThreatValue(int)

Defined in
CvCity.cpp, line 12805
Class
CvCity
Hook name
CivHooks::CvCity_SetThreatValue

Hooks

static bool BeforeCvCity_SetThreatValue(CvCity* self, int iThreatValue);static void AfterCvCity_SetThreatValue(CvCity* self, int iThreatValue);static void ReplaceCvCity_SetThreatValue(void (*original)(CvCity*, int), CvCity* self, int iThreatValue);CivRegisterBefore<CivHooks::CvCity_SetThreatValue>(host, &BeforeCvCity_SetThreatValue);CivRegisterAfter<CivHooks::CvCity_SetThreatValue>(host, &AfterCvCity_SetThreatValue);CivRegisterReplace<CivHooks::CvCity_SetThreatValue>(host, &ReplaceCvCity_SetThreatValue);

Code

12804/// Setting the danger value threat amount12805void CvCity::SetThreatValue(int iThreatValue)12806{12807	VALIDATE_OBJECT12808	m_iThreatValue = iThreatValue;12809}

Calls

Called by