CvAIOperation::SetDefaultArea(int)
- Defined in
- CvAIOperation.cpp, line 154
- Class
- CvAIOperation
- Hook name
CivHooks::CvAIOperation_SetDefaultArea
Hooks
static bool BeforeCvAIOperation_SetDefaultArea(CvAIOperation* self, int iDefaultArea);static void AfterCvAIOperation_SetDefaultArea(CvAIOperation* self, int iDefaultArea);static void ReplaceCvAIOperation_SetDefaultArea(void (*original)(CvAIOperation*, int), CvAIOperation* self, int iDefaultArea);CivRegisterBefore<CivHooks::CvAIOperation_SetDefaultArea>(host, &BeforeCvAIOperation_SetDefaultArea);CivRegisterAfter<CivHooks::CvAIOperation_SetDefaultArea>(host, &AfterCvAIOperation_SetDefaultArea);CivRegisterReplace<CivHooks::CvAIOperation_SetDefaultArea>(host, &ReplaceCvAIOperation_SetDefaultArea);
Code
153/// Set area for operation154void CvAIOperation::SetDefaultArea(int iDefaultArea)155{156 m_iDefaultArea = iDefaultArea;157}
Called by
- CvAIEnemyTerritoryOperation::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIEscortedOperation::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAINavalEscortedOperation::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationBasicCityAttack::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationCityCloseDefense::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationFoundCity::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationNavalAttack::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationNavalBombardment::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationNavalSuperiority::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationPureNavalCityAttack::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationQuickColonize::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationRapidResponse::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)