Bazaar developer reference

CvDiplomacyAI::SetMusteringForAttack(PlayerTypes, bool)

Defined in
CvDiplomacyAI.cpp, line 5806
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetMusteringForAttack

Hooks

static bool BeforeCvDiplomacyAI_SetMusteringForAttack(CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);static void AfterCvDiplomacyAI_SetMusteringForAttack(CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);static void ReplaceCvDiplomacyAI_SetMusteringForAttack(void (*original)(CvDiplomacyAI*, PlayerTypes, bool), CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetMusteringForAttack>(host, &BeforeCvDiplomacyAI_SetMusteringForAttack);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetMusteringForAttack>(host, &AfterCvDiplomacyAI_SetMusteringForAttack);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetMusteringForAttack>(host, &ReplaceCvDiplomacyAI_SetMusteringForAttack);

Code

5805/// Sets whether or not we're building up for an attack on ePlayer5806void CvDiplomacyAI::SetMusteringForAttack(PlayerTypes ePlayer, bool bValue)5807{5808	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");5809	CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");5810	m_pabMusteringForAttack[ePlayer] = bValue;5811}

Called by