Bazaar developer reference

CvPlayerAI::AI_doTurnUnitsPre()

Defined in
CvPlayerAI.cpp, line 137
Class
CvPlayerAI
Hook name
CivHooks::CvPlayerAI_AI_doTurnUnitsPre
Overrides
CvPlayer::AI_doTurnUnitsPre()

Hooks

static bool BeforeCvPlayerAI_AI_doTurnUnitsPre(CvPlayerAI* self);static void AfterCvPlayerAI_AI_doTurnUnitsPre(CvPlayerAI* self);static void ReplaceCvPlayerAI_AI_doTurnUnitsPre(void (*original)(CvPlayerAI*), CvPlayerAI* self);CivRegisterBefore<CivHooks::CvPlayerAI_AI_doTurnUnitsPre>(host, &BeforeCvPlayerAI_AI_doTurnUnitsPre);CivRegisterAfter<CivHooks::CvPlayerAI_AI_doTurnUnitsPre>(host, &AfterCvPlayerAI_AI_doTurnUnitsPre);CivRegisterReplace<CivHooks::CvPlayerAI_AI_doTurnUnitsPre>(host, &ReplaceCvPlayerAI_AI_doTurnUnitsPre);

Code

137void CvPlayerAI::AI_doTurnUnitsPre()138{139	GetTacticalAI()->InitializeQueuedAttacks();140141	if(isHuman())142	{143		return;144	}145146	if(isBarbarian())147	{148		return;149	}150}

Calls