Bazaar developer reference

CvUnit::changeAmphibCount(int)

Defined in
CvUnit.cpp, line 17686
Class
CvUnit
Hook name
CivHooks::CvUnit_changeAmphibCount

Hooks

static bool BeforeCvUnit_changeAmphibCount(CvUnit* self, int iChange);static void AfterCvUnit_changeAmphibCount(CvUnit* self, int iChange);static void ReplaceCvUnit_changeAmphibCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_changeAmphibCount>(host, &BeforeCvUnit_changeAmphibCount);CivRegisterAfter<CivHooks::CvUnit_changeAmphibCount>(host, &AfterCvUnit_changeAmphibCount);CivRegisterReplace<CivHooks::CvUnit_changeAmphibCount>(host, &ReplaceCvUnit_changeAmphibCount);

Code

17686void CvUnit::changeAmphibCount(int iChange)17687{17688	VALIDATE_OBJECT17689	m_iAmphibCount = (m_iAmphibCount + iChange);17690	CvAssert(getAmphibCount() >= 0);17691}

Calls

Called by