Bazaar developer reference

CvCity::canRangedStrikeTarget(const CvPlot &) const

Defined in
CvCity.cpp, line 16241
Class
CvCity
Hook name
CivHooks::CvCity_canRangedStrikeTarget

Hooks

static bool BeforeCvCity_canRangedStrikeTarget(const CvCity* self, const CvPlot& targetPlot, bool& result);static void AfterCvCity_canRangedStrikeTarget(const CvCity* self, const CvPlot& targetPlot, bool& result);static bool ReplaceCvCity_canRangedStrikeTarget(bool (*original)(const CvCity*, const CvPlot&), const CvCity* self, const CvPlot& targetPlot);CivRegisterBefore<CivHooks::CvCity_canRangedStrikeTarget>(host, &BeforeCvCity_canRangedStrikeTarget);CivRegisterAfter<CivHooks::CvCity_canRangedStrikeTarget>(host, &AfterCvCity_canRangedStrikeTarget);CivRegisterReplace<CivHooks::CvCity_canRangedStrikeTarget>(host, &ReplaceCvCity_canRangedStrikeTarget);

Code

16241bool CvCity::canRangedStrikeTarget(const CvPlot& targetPlot) const16242{16243	VALIDATE_OBJECT16244	return (const_cast<CvCity*>(this)->rangedStrikeTarget(const_cast<CvPlot*>(&targetPlot)) != 0);16245}

Calls

Called by