Bazaar developer reference

CvDangerPlots::IsUnderImmediateThreat(const CvPlot &) const

Defined in
CvDangerPlots.cpp, line 271
Class
CvDangerPlots
Hook name
CivHooks::CvDangerPlots_IsUnderImmediateThreat

Hooks

static bool BeforeCvDangerPlots_IsUnderImmediateThreat(const CvDangerPlots* self, const CvPlot& pPlot, bool& result);static void AfterCvDangerPlots_IsUnderImmediateThreat(const CvDangerPlots* self, const CvPlot& pPlot, bool& result);static bool ReplaceCvDangerPlots_IsUnderImmediateThreat(bool (*original)(const CvDangerPlots*, const CvPlot&), const CvDangerPlots* self, const CvPlot& pPlot);CivRegisterBefore<CivHooks::CvDangerPlots_IsUnderImmediateThreat>(host, &BeforeCvDangerPlots_IsUnderImmediateThreat);CivRegisterAfter<CivHooks::CvDangerPlots_IsUnderImmediateThreat>(host, &AfterCvDangerPlots_IsUnderImmediateThreat);CivRegisterReplace<CivHooks::CvDangerPlots_IsUnderImmediateThreat>(host, &ReplaceCvDangerPlots_IsUnderImmediateThreat);

Code

270/// Returns if the unit is in immediate danger271bool CvDangerPlots::IsUnderImmediateThreat(const CvPlot& pPlot) const272{273	return GetDanger(pPlot) & 0x1;274}

Calls

Called by