Bazaar developer reference

CvDiplomacyAI::WasResurrectedThisTurnBy(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 23108
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_WasResurrectedThisTurnBy

Hooks

static bool BeforeCvDiplomacyAI_WasResurrectedThisTurnBy(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_WasResurrectedThisTurnBy(const CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_WasResurrectedThisTurnBy(bool (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_WasResurrectedThisTurnBy>(host, &BeforeCvDiplomacyAI_WasResurrectedThisTurnBy);CivRegisterAfter<CivHooks::CvDiplomacyAI_WasResurrectedThisTurnBy>(host, &AfterCvDiplomacyAI_WasResurrectedThisTurnBy);CivRegisterReplace<CivHooks::CvDiplomacyAI_WasResurrectedThisTurnBy>(host, &ReplaceCvDiplomacyAI_WasResurrectedThisTurnBy);

Code

23108bool CvDiplomacyAI::WasResurrectedThisTurnBy(PlayerTypes ePlayer) const23109{23110	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");23111	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.");23112	return m_paiResurrectedOnTurn[ePlayer] == GC.getGame().getGameTurn();23113}

Calls

Called by