Bazaar developer reference

CvUnit::ChangeEmbarkAbilityCount(int)

Defined in
CvUnit.cpp, line 5240
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeEmbarkAbilityCount

Hooks

static bool BeforeCvUnit_ChangeEmbarkAbilityCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeEmbarkAbilityCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeEmbarkAbilityCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeEmbarkAbilityCount>(host, &BeforeCvUnit_ChangeEmbarkAbilityCount);CivRegisterAfter<CivHooks::CvUnit_ChangeEmbarkAbilityCount>(host, &AfterCvUnit_ChangeEmbarkAbilityCount);CivRegisterReplace<CivHooks::CvUnit_ChangeEmbarkAbilityCount>(host, &ReplaceCvUnit_ChangeEmbarkAbilityCount);

Code

5239/// Does this Unit have the ability to embark?5240void CvUnit::ChangeEmbarkAbilityCount(int iChange)5241{5242	if(iChange != 0)5243	{5244		m_iEmbarkAbilityCount += iChange;5245	}5246}

Calls

Called by