Bazaar developer reference

CvPlayer::isMilitaryFoodProduction() const

Defined in
CvPlayer.cpp, line 15754
Class
CvPlayer
Hook name
CivHooks::CvPlayer_isMilitaryFoodProduction

Hooks

static bool BeforeCvPlayer_isMilitaryFoodProduction(const CvPlayer* self, bool& result);static void AfterCvPlayer_isMilitaryFoodProduction(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_isMilitaryFoodProduction(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_isMilitaryFoodProduction>(host, &BeforeCvPlayer_isMilitaryFoodProduction);CivRegisterAfter<CivHooks::CvPlayer_isMilitaryFoodProduction>(host, &AfterCvPlayer_isMilitaryFoodProduction);CivRegisterReplace<CivHooks::CvPlayer_isMilitaryFoodProduction>(host, &ReplaceCvPlayer_isMilitaryFoodProduction);

Code

15754bool CvPlayer::isMilitaryFoodProduction() const15755{15756	return (getMilitaryFoodProductionCount() > 0);15757}

Calls

Called by