Bazaar developer reference

CvPlot::isFriendlyCityOrPassableImprovement(const CvUnit &, bool) const

Defined in
CvPlot.cpp, line 3758
Class
CvPlot
Hook name
CivHooks::CvPlot_isFriendlyCityOrPassableImprovement

Hooks

static bool BeforeCvPlot_isFriendlyCityOrPassableImprovement(const CvPlot* self, const CvUnit& kUnit, bool bCheckImprovement, bool& result);static void AfterCvPlot_isFriendlyCityOrPassableImprovement(const CvPlot* self, const CvUnit& kUnit, bool bCheckImprovement, bool& result);static bool ReplaceCvPlot_isFriendlyCityOrPassableImprovement(bool (*original)(const CvPlot*, const CvUnit&, bool), const CvPlot* self, const CvUnit& kUnit, bool bCheckImprovement);CivRegisterBefore<CivHooks::CvPlot_isFriendlyCityOrPassableImprovement>(host, &BeforeCvPlot_isFriendlyCityOrPassableImprovement);CivRegisterAfter<CivHooks::CvPlot_isFriendlyCityOrPassableImprovement>(host, &AfterCvPlot_isFriendlyCityOrPassableImprovement);CivRegisterReplace<CivHooks::CvPlot_isFriendlyCityOrPassableImprovement>(host, &ReplaceCvPlot_isFriendlyCityOrPassableImprovement);

Code

3758bool CvPlot::isFriendlyCityOrPassableImprovement(const CvUnit& kUnit, bool bCheckImprovement) const3759{3760	return isFriendlyCityOrPassableImprovement(kUnit.getOwner(), bCheckImprovement, &kUnit);3761}

Calls

Called by