CvMap::firstArea(int *, bool)
- Defined in
- CvMap.cpp, line 1295
- Class
- CvMap
- Hook name
CivHooks::CvMap_firstArea
Hooks
static bool BeforeCvMap_firstArea(CvMap* self, int* pIterIdx, bool bRev, CvArea*& result);static void AfterCvMap_firstArea(CvMap* self, int* pIterIdx, bool bRev, CvArea*& result);static CvArea* ReplaceCvMap_firstArea(CvArea* (*original)(CvMap*, int*, bool), CvMap* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvMap_firstArea>(host, &BeforeCvMap_firstArea);CivRegisterAfter<CivHooks::CvMap_firstArea>(host, &AfterCvMap_firstArea);CivRegisterReplace<CivHooks::CvMap_firstArea>(host, &ReplaceCvMap_firstArea);
Code
1295CvArea* CvMap::firstArea(int* pIterIdx, bool bRev)1296{1297 return !bRev ? m_areas.BeginIter(pIterIdx) : m_areas.EndIter(pIterIdx);1298}
Calls
FFreeListArrayBase::BeginIterFFreeListArrayBase::EndIter
Called by
- CvAIOperation::GetOperationStartCity() const
- CvMap::DoPlaceNaturalWonders()
- CvMap::findBiggestArea(bool)
- CvMap::getNumLandAreas()
- CvPlayer::GetBestSettleAreas(int, int &, int &)
- CvPlayerAI::AI_updateFoundValues(bool)
- CvStartPositioner::ComputeTileFertilityValues()
- CvStartPositioner::DivideMapIntoRegions(int)
- CvLuaMap::lAreasAux(lua_State *)