Bazaar developer reference

CvGlobals::getTurnLeftDirection(int)

Defined in
CvGlobals.cpp, line 2592
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getTurnLeftDirection_with_int

Hooks

static bool BeforeCvGlobals_getTurnLeftDirection_with_int(CvGlobals* self, int i, DirectionTypes& result);static void AfterCvGlobals_getTurnLeftDirection_with_int(CvGlobals* self, int i, DirectionTypes& result);static DirectionTypes ReplaceCvGlobals_getTurnLeftDirection_with_int(DirectionTypes (*original)(CvGlobals*, int), CvGlobals* self, int i);CivRegisterBefore<CivHooks::CvGlobals_getTurnLeftDirection_with_int>(host, &BeforeCvGlobals_getTurnLeftDirection_with_int);CivRegisterAfter<CivHooks::CvGlobals_getTurnLeftDirection_with_int>(host, &AfterCvGlobals_getTurnLeftDirection_with_int);CivRegisterReplace<CivHooks::CvGlobals_getTurnLeftDirection_with_int>(host, &ReplaceCvGlobals_getTurnLeftDirection_with_int);

Code

2592DirectionTypes CvGlobals::getTurnLeftDirection(int i)2593{2594	CvAssertMsg(i < NUM_DIRECTION_TYPES, "Index out of bounds");2595	CvAssertMsg(i > -1, "Index out of bounds");25962597	if(i < 0 || i >= NUM_DIRECTION_TYPES) return NO_DIRECTION;25982599	return m_aeTurnLeftDirection[i];2600}