Bazaar developer reference

PUF_isSelected(const CvUnit *, int, int)

Defined in
CvGameCoreUtils.cpp, line 844
Hook name
CivHooks::PUF_isSelected

Hooks

static bool BeforePUF_isSelected(const CvUnit* pUnit, int arg1, int arg2, bool& result);static void AfterPUF_isSelected(const CvUnit* pUnit, int arg1, int arg2, bool& result);static bool ReplacePUF_isSelected(bool (*original)(const CvUnit*, int, int), const CvUnit* pUnit, int arg1, int arg2);CivRegisterBefore<CivHooks::PUF_isSelected>(host, &BeforePUF_isSelected);CivRegisterAfter<CivHooks::PUF_isSelected>(host, &AfterPUF_isSelected);CivRegisterReplace<CivHooks::PUF_isSelected>(host, &ReplacePUF_isSelected);

Code

844bool PUF_isSelected(const CvUnit* pUnit, int, int)845{846	return pUnit->IsSelected();847}

Calls