Bazaar developer reference

CvUnit::IsEmbarkAllWater() const

Defined in
CvUnit.cpp, line 5261
Class
CvUnit
Hook name
CivHooks::CvUnit_IsEmbarkAllWater

Hooks

static bool BeforeCvUnit_IsEmbarkAllWater(const CvUnit* self, bool& result);static void AfterCvUnit_IsEmbarkAllWater(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsEmbarkAllWater(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsEmbarkAllWater>(host, &BeforeCvUnit_IsEmbarkAllWater);CivRegisterAfter<CivHooks::CvUnit_IsEmbarkAllWater>(host, &AfterCvUnit_IsEmbarkAllWater);CivRegisterReplace<CivHooks::CvUnit_IsEmbarkAllWater>(host, &ReplaceCvUnit_IsEmbarkAllWater);

Code

5261bool CvUnit::IsEmbarkAllWater() const5262{5263	VALIDATE_OBJECT5264	return (GetEmbarkAllWaterCount() > 0);5265}

Calls

Called by