Bazaar developer reference

CvDiplomacyAI::IsMusteringForAttack(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 5798
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsMusteringForAttack

Hooks

static bool BeforeCvDiplomacyAI_IsMusteringForAttack(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsMusteringForAttack(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsMusteringForAttack(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsMusteringForAttack>(host, &BeforeCvDiplomacyAI_IsMusteringForAttack);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsMusteringForAttack>(host, &AfterCvDiplomacyAI_IsMusteringForAttack);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsMusteringForAttack>(host, &ReplaceCvDiplomacyAI_IsMusteringForAttack);

Code

5797/// Are we building up for an attack on ePlayer?5798bool CvDiplomacyAI::IsMusteringForAttack(PlayerTypes ePlayer) const5799{5800	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");5801	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.");5802	return m_pabMusteringForAttack[ePlayer];5803}

Called by