Bazaar developer reference

CvUnit::IsOnPlotType(PlotTypes) const

Defined in
CvUnit.cpp, line 25565
Class
CvUnit
Hook name
CivHooks::CvUnit_IsOnPlotType

Hooks

static bool BeforeCvUnit_IsOnPlotType(const CvUnit* self, PlotTypes iPlotType, bool& result);static void AfterCvUnit_IsOnPlotType(const CvUnit* self, PlotTypes iPlotType, bool& result);static bool ReplaceCvUnit_IsOnPlotType(bool (*original)(const CvUnit*, PlotTypes), const CvUnit* self, PlotTypes iPlotType);CivRegisterBefore<CivHooks::CvUnit_IsOnPlotType>(host, &BeforeCvUnit_IsOnPlotType);CivRegisterAfter<CivHooks::CvUnit_IsOnPlotType>(host, &AfterCvUnit_IsOnPlotType);CivRegisterReplace<CivHooks::CvUnit_IsOnPlotType>(host, &ReplaceCvUnit_IsOnPlotType);

Code

25565bool CvUnit::IsOnPlotType(PlotTypes iPlotType) const25566{25567	return plot()->HasPlotType(iPlotType);25568}

Calls

Called by