CvPlot::HasPlotType(PlotTypes) const
- Defined in
- CvPlot.cpp, line 11916
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_HasPlotType
Hooks
static bool BeforeCvPlot_HasPlotType(const CvPlot* self, PlotTypes iPlotType, bool& result);static void AfterCvPlot_HasPlotType(const CvPlot* self, PlotTypes iPlotType, bool& result);static bool ReplaceCvPlot_HasPlotType(bool (*original)(const CvPlot*, PlotTypes), const CvPlot* self, PlotTypes iPlotType);CivRegisterBefore<CivHooks::CvPlot_HasPlotType>(host, &BeforeCvPlot_HasPlotType);CivRegisterAfter<CivHooks::CvPlot_HasPlotType>(host, &AfterCvPlot_HasPlotType);CivRegisterReplace<CivHooks::CvPlot_HasPlotType>(host, &ReplaceCvPlot_HasPlotType);
Code
11916bool CvPlot::HasPlotType(PlotTypes iPlotType) const11917{11918 return (getPlotType() == iPlotType);11919}
Calls
Called by
- CvCity::CountPlotType(PlotTypes) const
- CvCity::CountWorkedPlotType(PlotTypes) const
- CvCity::HasPlotType(PlotTypes) const
- CvCity::HasWorkedPlotType(PlotTypes) const
- CvCity::IsOnPlotType(PlotTypes) const
- CvPlot::IsAdjacentToPlotType(PlotTypes) const
- CvPlot::IsWithinDistanceOfPlotType(PlotTypes, int) const
- CvPlot::IsPlotHill() const
- CvPlot::IsPlotHills() const
- CvPlot::IsPlotLand() const
- CvPlot::IsPlotMountain() const
- CvPlot::IsPlotMountains() const
- CvPlot::IsPlotOcean() const
- CvUnit::IsOnPlotType(PlotTypes) const
- CvLuaPlot::lHasPlotType(lua_State *)