Bazaar developer reference

CvPlot::changeRiverCrossingCount(int)

Defined in
CvPlot.cpp, line 7792
Class
CvPlot
Hook name
CivHooks::CvPlot_changeRiverCrossingCount

Hooks

static bool BeforeCvPlot_changeRiverCrossingCount(CvPlot* self, int iChange);static void AfterCvPlot_changeRiverCrossingCount(CvPlot* self, int iChange);static void ReplaceCvPlot_changeRiverCrossingCount(void (*original)(CvPlot*, int), CvPlot* self, int iChange);CivRegisterBefore<CivHooks::CvPlot_changeRiverCrossingCount>(host, &BeforeCvPlot_changeRiverCrossingCount);CivRegisterAfter<CivHooks::CvPlot_changeRiverCrossingCount>(host, &AfterCvPlot_changeRiverCrossingCount);CivRegisterReplace<CivHooks::CvPlot_changeRiverCrossingCount>(host, &ReplaceCvPlot_changeRiverCrossingCount);

Code

7792void CvPlot::changeRiverCrossingCount(int iChange)7793{7794	m_iRiverCrossingCount = (m_iRiverCrossingCount + iChange);7795	CvAssert(getRiverCrossingCount() >= 0);7796}

Called by