Bazaar developer reference

CvGlobals::getTurnRightDirection(int)

Defined in
CvGlobals.cpp, line 2607
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getTurnRightDirection_with_int

Hooks

static bool BeforeCvGlobals_getTurnRightDirection_with_int(CvGlobals* self, int i, DirectionTypes& result);static void AfterCvGlobals_getTurnRightDirection_with_int(CvGlobals* self, int i, DirectionTypes& result);static DirectionTypes ReplaceCvGlobals_getTurnRightDirection_with_int(DirectionTypes (*original)(CvGlobals*, int), CvGlobals* self, int i);CivRegisterBefore<CivHooks::CvGlobals_getTurnRightDirection_with_int>(host, &BeforeCvGlobals_getTurnRightDirection_with_int);CivRegisterAfter<CivHooks::CvGlobals_getTurnRightDirection_with_int>(host, &AfterCvGlobals_getTurnRightDirection_with_int);CivRegisterReplace<CivHooks::CvGlobals_getTurnRightDirection_with_int>(host, &ReplaceCvGlobals_getTurnRightDirection_with_int);

Code

2607DirectionTypes CvGlobals::getTurnRightDirection(int i)2608{2609	CvAssertMsg(i < NUM_DIRECTION_TYPES, "Index out of bounds");2610	CvAssertMsg(i > -1, "Index out of bounds");26112612	if(i < 0 || i >= NUM_DIRECTION_TYPES) return NO_DIRECTION;26132614	return m_aeTurnRightDirection[i];2615}

Called by