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
- CvCity::DoRazingTurn()
- CvCity::GetFaithPerTurn() const
- CvCity::IsCanPurchase(bool, bool, UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::canRangeStrike() const
- CvCity::doGrowth()
- CvCity::getJONSCulturePerTurn() const
- CvCity::getProductionDifference(int, int, int, bool, bool) const
- CvCity::getProductionDifferenceTimes100(int, int, int, bool, bool) const
- CvCity::getYieldRateTimes100(YieldTypes, bool) const
- CvCityCulture::GetBaseTourismBeforeModifiers()
- CvPlayerCulture::DoSwapGreatWorks(YieldTypes)
- CvHomelandAI::ExecuteAircraftMoves()
- CvPlayer::GetMaxEffectiveCities(bool)
- CvPlayer::findNewCapital()
- CvPlayer::getBuildingClassPrereqBuilding(BuildingTypes, BuildingClassTypes, int) const
- CvGameTrade::CanCreateTradeRoute(CvCity *, CvCity *, DomainTypes, TradeConnectionType, bool, bool)
- CvLuaCity::lIsRazing(lua_State *)