Bazaar developer reference

CvUnit::IsSelected() const

Defined in
CvUnit.cpp, line 22180
Class
CvUnit
Hook name
CivHooks::CvUnit_IsSelected

Hooks

static bool BeforeCvUnit_IsSelected(const CvUnit* self, bool& result);static void AfterCvUnit_IsSelected(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsSelected(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsSelected>(host, &BeforeCvUnit_IsSelected);CivRegisterAfter<CivHooks::CvUnit_IsSelected>(host, &AfterCvUnit_IsSelected);CivRegisterReplace<CivHooks::CvUnit_IsSelected>(host, &ReplaceCvUnit_IsSelected);

Code

22180bool CvUnit::IsSelected() const22181{22182	VALIDATE_OBJECT22183	return DLLUI->IsUnitSelected(getOwner(), GetID());22184}

Calls

Called by