Bazaar developer reference

CvArea::changeNumStartingPlots(int)

Defined in
CvArea.cpp, line 303
Class
CvArea
Hook name
CivHooks::CvArea_changeNumStartingPlots

Hooks

static bool BeforeCvArea_changeNumStartingPlots(CvArea* self, int iChange);static void AfterCvArea_changeNumStartingPlots(CvArea* self, int iChange);static void ReplaceCvArea_changeNumStartingPlots(void (*original)(CvArea*, int), CvArea* self, int iChange);CivRegisterBefore<CivHooks::CvArea_changeNumStartingPlots>(host, &BeforeCvArea_changeNumStartingPlots);CivRegisterAfter<CivHooks::CvArea_changeNumStartingPlots>(host, &AfterCvArea_changeNumStartingPlots);CivRegisterReplace<CivHooks::CvArea_changeNumStartingPlots>(host, &ReplaceCvArea_changeNumStartingPlots);

Code

303void CvArea::changeNumStartingPlots(int iChange)304{305	m_iNumStartingPlots = m_iNumStartingPlots + iChange;306	CvAssert(getNumStartingPlots() >= 0);307}

Called by