Bazaar developer reference

CvCity::IsRazing() const

Defined in
CvCity.cpp, line 9525
Class
CvCity
Hook name
CivHooks::CvCity_IsRazing

Hooks

static bool BeforeCvCity_IsRazing(const CvCity* self, bool& result);static void AfterCvCity_IsRazing(const CvCity* self, bool& result);static bool ReplaceCvCity_IsRazing(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_IsRazing>(host, &BeforeCvCity_IsRazing);CivRegisterAfter<CivHooks::CvCity_IsRazing>(host, &AfterCvCity_IsRazing);CivRegisterReplace<CivHooks::CvCity_IsRazing>(host, &ReplaceCvCity_IsRazing);

Code

9525bool CvCity::IsRazing() const9526{9527	VALIDATE_OBJECT9528	return GetRazingTurns() > 0;9529}

Calls

Called by