Bazaar developer reference

CvUnit::IsAdjacentToPlotType(PlotTypes) const

Defined in
CvUnit.cpp, line 25570
Class
CvUnit
Hook name
CivHooks::CvUnit_IsAdjacentToPlotType

Hooks

static bool BeforeCvUnit_IsAdjacentToPlotType(const CvUnit* self, PlotTypes iPlotType, bool& result);static void AfterCvUnit_IsAdjacentToPlotType(const CvUnit* self, PlotTypes iPlotType, bool& result);static bool ReplaceCvUnit_IsAdjacentToPlotType(bool (*original)(const CvUnit*, PlotTypes), const CvUnit* self, PlotTypes iPlotType);CivRegisterBefore<CivHooks::CvUnit_IsAdjacentToPlotType>(host, &BeforeCvUnit_IsAdjacentToPlotType);CivRegisterAfter<CivHooks::CvUnit_IsAdjacentToPlotType>(host, &AfterCvUnit_IsAdjacentToPlotType);CivRegisterReplace<CivHooks::CvUnit_IsAdjacentToPlotType>(host, &ReplaceCvUnit_IsAdjacentToPlotType);

Code

25570bool CvUnit::IsAdjacentToPlotType(PlotTypes iPlotType) const25571{25572	return plot()->IsAdjacentToPlotType(iPlotType);25573}

Calls

Called by