CvPlot::hasYield() const
- Defined in
- CvPlot.cpp, line 8584
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_hasYield
Hooks
static bool BeforeCvPlot_hasYield(const CvPlot* self, bool& result);static void AfterCvPlot_hasYield(const CvPlot* self, bool& result);static bool ReplaceCvPlot_hasYield(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_hasYield>(host, &BeforeCvPlot_hasYield);CivRegisterAfter<CivHooks::CvPlot_hasYield>(host, &AfterCvPlot_hasYield);CivRegisterReplace<CivHooks::CvPlot_hasYield>(host, &ReplaceCvPlot_hasYield);
Code
8584bool CvPlot::hasYield() const8585{8586 int iI;85878588 for(iI = 0; iI < NUM_YIELD_TYPES; ++iI)8589 {8590 if(getYield((YieldTypes)iI) > 0)8591 {8592 return true;8593 }8594 }85958596 return false;8597}