CvArmyAI::SetGoalXY(int, int)
- Defined in
- CvArmyAI.cpp, line 645
- Class
- CvArmyAI
- Hook name
CivHooks::CvArmyAI_SetGoalXY
Hooks
static bool BeforeCvArmyAI_SetGoalXY(CvArmyAI* self, int iX, int iY);static void AfterCvArmyAI_SetGoalXY(CvArmyAI* self, int iX, int iY);static void ReplaceCvArmyAI_SetGoalXY(void (*original)(CvArmyAI*, int, int), CvArmyAI* self, int iX, int iY);CivRegisterBefore<CivHooks::CvArmyAI_SetGoalXY>(host, &BeforeCvArmyAI_SetGoalXY);CivRegisterAfter<CivHooks::CvArmyAI_SetGoalXY>(host, &AfterCvArmyAI_SetGoalXY);CivRegisterReplace<CivHooks::CvArmyAI_SetGoalXY>(host, &ReplaceCvArmyAI_SetGoalXY);
Code
644/// Set target for army movement using X, Y coordinates645void CvArmyAI::SetGoalXY(int iX, int iY)646{647 m_iGoalX = iX;648 m_iGoalY = iY;649}