Bazaar developer reference

CvDiplomacyAI::WasResurrectedBy(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 23100
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_WasResurrectedBy

Hooks

static bool BeforeCvDiplomacyAI_WasResurrectedBy(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_WasResurrectedBy(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_WasResurrectedBy(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_WasResurrectedBy>(host, &BeforeCvDiplomacyAI_WasResurrectedBy);CivRegisterAfter<CivHooks::CvDiplomacyAI_WasResurrectedBy>(host, &AfterCvDiplomacyAI_WasResurrectedBy);CivRegisterReplace<CivHooks::CvDiplomacyAI_WasResurrectedBy>(host, &ReplaceCvDiplomacyAI_WasResurrectedBy);

Code

23099/// Brought player back to life?23100bool CvDiplomacyAI::WasResurrectedBy(PlayerTypes ePlayer) const23101{23102	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");23103	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");2310423105	return m_paiResurrectedOnTurn[ePlayer] != -1;23106}

Called by