Bazaar developer reference

CvMap::changeOwnedPlots(int)

Defined in
CvMap.cpp, line 1118
Class
CvMap
Hook name
CivHooks::CvMap_changeOwnedPlots

Hooks

static bool BeforeCvMap_changeOwnedPlots(CvMap* self, int iChange);static void AfterCvMap_changeOwnedPlots(CvMap* self, int iChange);static void ReplaceCvMap_changeOwnedPlots(void (*original)(CvMap*, int), CvMap* self, int iChange);CivRegisterBefore<CivHooks::CvMap_changeOwnedPlots>(host, &BeforeCvMap_changeOwnedPlots);CivRegisterAfter<CivHooks::CvMap_changeOwnedPlots>(host, &AfterCvMap_changeOwnedPlots);CivRegisterReplace<CivHooks::CvMap_changeOwnedPlots>(host, &ReplaceCvMap_changeOwnedPlots);

Code

1118void CvMap::changeOwnedPlots(int iChange)1119{1120	m_iOwnedPlots = (m_iOwnedPlots + iChange);1121	CvAssert(getOwnedPlots() >= 0);1122}

Called by