Bazaar developer reference

PUF_canDefend(const CvUnit *, int, int)

Defined in
CvGameCoreUtils.cpp, line 798
Hook name
CivHooks::PUF_canDefend

Hooks

static bool BeforePUF_canDefend(const CvUnit* pUnit, int arg1, int arg2, bool& result);static void AfterPUF_canDefend(const CvUnit* pUnit, int arg1, int arg2, bool& result);static bool ReplacePUF_canDefend(bool (*original)(const CvUnit*, int, int), const CvUnit* pUnit, int arg1, int arg2);CivRegisterBefore<CivHooks::PUF_canDefend>(host, &BeforePUF_canDefend);CivRegisterAfter<CivHooks::PUF_canDefend>(host, &AfterPUF_canDefend);CivRegisterReplace<CivHooks::PUF_canDefend>(host, &ReplacePUF_canDefend);

Code

798bool PUF_canDefend(const CvUnit* pUnit, int, int)799{800	return pUnit->IsCanDefend();801}

Calls

Called by