Bazaar developer reference

CvUnit::getIndex() const

Defined in
CvUnit.cpp, line 15488
Class
CvUnit
Hook name
CivHooks::CvUnit_getIndex

Hooks

static bool BeforeCvUnit_getIndex(const CvUnit* self, int& result);static void AfterCvUnit_getIndex(const CvUnit* self, int& result);static int ReplaceCvUnit_getIndex(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_getIndex>(host, &BeforeCvUnit_getIndex);CivRegisterAfter<CivHooks::CvUnit_getIndex>(host, &AfterCvUnit_getIndex);CivRegisterReplace<CivHooks::CvUnit_getIndex>(host, &ReplaceCvUnit_getIndex);

Code

15488int CvUnit::getIndex() const15489{15490	VALIDATE_OBJECT15491	return (GetID() & FLTA_INDEX_MASK);15492}

Calls

Called by