Bazaar developer reference

CvUnit::hasCargo() const

Defined in
CvUnit.cpp, line 15384
Class
CvUnit
Hook name
CivHooks::CvUnit_hasCargo

Hooks

static bool BeforeCvUnit_hasCargo(const CvUnit* self, bool& result);static void AfterCvUnit_hasCargo(const CvUnit* self, bool& result);static bool ReplaceCvUnit_hasCargo(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_hasCargo>(host, &BeforeCvUnit_hasCargo);CivRegisterAfter<CivHooks::CvUnit_hasCargo>(host, &AfterCvUnit_hasCargo);CivRegisterReplace<CivHooks::CvUnit_hasCargo>(host, &ReplaceCvUnit_hasCargo);

Code

15384bool CvUnit::hasCargo() const15385{15386	VALIDATE_OBJECT15387	return (getCargo() > 0);15388}

Calls

Called by