Bazaar developer reference

PUF_isFighting(const CvUnit *, int, int)

Defined in
CvGameCoreUtils.cpp, line 821
Hook name
CivHooks::PUF_isFighting

Hooks

static bool BeforePUF_isFighting(const CvUnit* pUnit, int arg1, int arg2, bool& result);static void AfterPUF_isFighting(const CvUnit* pUnit, int arg1, int arg2, bool& result);static bool ReplacePUF_isFighting(bool (*original)(const CvUnit*, int, int), const CvUnit* pUnit, int arg1, int arg2);CivRegisterBefore<CivHooks::PUF_isFighting>(host, &BeforePUF_isFighting);CivRegisterAfter<CivHooks::PUF_isFighting>(host, &AfterPUF_isFighting);CivRegisterReplace<CivHooks::PUF_isFighting>(host, &ReplacePUF_isFighting);

Code

821bool PUF_isFighting(const CvUnit* pUnit, int, int)822{823	return pUnit->isFighting();824}

Calls