Bazaar developer reference

CvMap::changeLandPlots(int)

Defined in
CvMap.cpp, line 1103
Class
CvMap
Hook name
CivHooks::CvMap_changeLandPlots

Hooks

static bool BeforeCvMap_changeLandPlots(CvMap* self, int iChange);static void AfterCvMap_changeLandPlots(CvMap* self, int iChange);static void ReplaceCvMap_changeLandPlots(void (*original)(CvMap*, int), CvMap* self, int iChange);CivRegisterBefore<CivHooks::CvMap_changeLandPlots>(host, &BeforeCvMap_changeLandPlots);CivRegisterAfter<CivHooks::CvMap_changeLandPlots>(host, &AfterCvMap_changeLandPlots);CivRegisterReplace<CivHooks::CvMap_changeLandPlots>(host, &ReplaceCvMap_changeLandPlots);

Code

1103void CvMap::changeLandPlots(int iChange)1104{1105	m_iLandPlots = (m_iLandPlots + iChange);1106	CvAssert(getLandPlots() >= 0);1107}

Called by