Bazaar developer reference

CvUnit::hasFreePillageMove() const

Defined in
CvUnit.cpp, line 14453
Class
CvUnit
Hook name
CivHooks::CvUnit_hasFreePillageMove

Hooks

static bool BeforeCvUnit_hasFreePillageMove(const CvUnit* self, bool& result);static void AfterCvUnit_hasFreePillageMove(const CvUnit* self, bool& result);static bool ReplaceCvUnit_hasFreePillageMove(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_hasFreePillageMove>(host, &BeforeCvUnit_hasFreePillageMove);CivRegisterAfter<CivHooks::CvUnit_hasFreePillageMove>(host, &AfterCvUnit_hasFreePillageMove);CivRegisterReplace<CivHooks::CvUnit_hasFreePillageMove>(host, &ReplaceCvUnit_hasFreePillageMove);

Code

14453bool CvUnit::hasFreePillageMove() const14454{14455	VALIDATE_OBJECT14456	return getFreePillageMoveCount() > 0 ? true : false;14457}

Calls

Called by