CvPlayerCulture::RemoveDigCompletePlot(CvPlot *)
- Defined in
- CvCultureClasses.cpp, line 2038
- Class
- CvPlayerCulture
- Hook name
CivHooks::CvPlayerCulture_RemoveDigCompletePlot
Hooks
static bool BeforeCvPlayerCulture_RemoveDigCompletePlot(CvPlayerCulture* self, CvPlot * pPlot);static void AfterCvPlayerCulture_RemoveDigCompletePlot(CvPlayerCulture* self, CvPlot * pPlot);static void ReplaceCvPlayerCulture_RemoveDigCompletePlot(void (*original)(CvPlayerCulture*, CvPlot *), CvPlayerCulture* self, CvPlot * pPlot);CivRegisterBefore<CivHooks::CvPlayerCulture_RemoveDigCompletePlot>(host, &BeforeCvPlayerCulture_RemoveDigCompletePlot);CivRegisterAfter<CivHooks::CvPlayerCulture_RemoveDigCompletePlot>(host, &AfterCvPlayerCulture_RemoveDigCompletePlot);CivRegisterReplace<CivHooks::CvPlayerCulture_RemoveDigCompletePlot>(host, &ReplaceCvPlayerCulture_RemoveDigCompletePlot);
Code
2037/// Remove a plot from the list of plots where we have archaeologists waiting for orders2038void CvPlayerCulture::RemoveDigCompletePlot(CvPlot *pPlot)2039{2040 vector<CvPlot *>::const_iterator it;20412042 for (it = m_aDigCompletePlots.begin(); it != m_aDigCompletePlots.end(); it++)2043 {2044 if (*it == pPlot)2045 {2046 m_aDigCompletePlots.erase(it);2047 break;2048 }2049 }2050}
Calls
std::_Vector_const_iterator::_Vector_const_iteratorstd::_Vector_const_iterator::_Vector_const_iteratorstd::_Vector_const_iterator::operator!=std::_Vector_const_iterator::operator*std::_Vector_const_iterator::operator++std::_Vector_const_iterator::operator=std::vector::beginstd::vector::endstd::vector::erase