Bazaar developer reference

CvArea::GetAreaMaxLatitude()

Defined in
CvArea.cpp, line 685
Class
CvArea
Hook name
CivHooks::CvArea_GetAreaMaxLatitude

Hooks

static bool BeforeCvArea_GetAreaMaxLatitude(CvArea* self, int& result);static void AfterCvArea_GetAreaMaxLatitude(CvArea* self, int& result);static int ReplaceCvArea_GetAreaMaxLatitude(int (*original)(CvArea*), CvArea* self);CivRegisterBefore<CivHooks::CvArea_GetAreaMaxLatitude>(host, &BeforeCvArea_GetAreaMaxLatitude);CivRegisterAfter<CivHooks::CvArea_GetAreaMaxLatitude>(host, &AfterCvArea_GetAreaMaxLatitude);CivRegisterReplace<CivHooks::CvArea_GetAreaMaxLatitude>(host, &ReplaceCvArea_GetAreaMaxLatitude);

Code

684/// What is the largest latitude value of this Area?685int CvArea::GetAreaMaxLatitude()686{687	int iTopLatitude, iBottomLatitude;688	GetTopAndBottomLatitudes(iTopLatitude, iBottomLatitude);689690	return max(iTopLatitude, iBottomLatitude);691}

Calls