Bazaar developer reference

CvUnit::IsEmbarkDeepWater() const

Defined in
CvUnit.cpp, line 5281
Class
CvUnit
Hook name
CivHooks::CvUnit_IsEmbarkDeepWater

Hooks

static bool BeforeCvUnit_IsEmbarkDeepWater(const CvUnit* self, bool& result);static void AfterCvUnit_IsEmbarkDeepWater(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsEmbarkDeepWater(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsEmbarkDeepWater>(host, &BeforeCvUnit_IsEmbarkDeepWater);CivRegisterAfter<CivHooks::CvUnit_IsEmbarkDeepWater>(host, &AfterCvUnit_IsEmbarkDeepWater);CivRegisterReplace<CivHooks::CvUnit_IsEmbarkDeepWater>(host, &ReplaceCvUnit_IsEmbarkDeepWater);

Code

5281bool CvUnit::IsEmbarkDeepWater() const5282{5283	VALIDATE_OBJECT5284	return MOD_PROMOTIONS_DEEP_WATER_EMBARKATION && (GetEmbarkDeepWaterCount() > 0);5285}

Calls

Called by