Bazaar developer reference

CvDiplomacyAI::ChangeOtherPlayerWarValueLost(PlayerTypes, PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 9324
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeOtherPlayerWarValueLost

Hooks

static bool BeforeCvDiplomacyAI_ChangeOtherPlayerWarValueLost(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eLostToPlayer, int iChange);static void AfterCvDiplomacyAI_ChangeOtherPlayerWarValueLost(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eLostToPlayer, int iChange);static void ReplaceCvDiplomacyAI_ChangeOtherPlayerWarValueLost(void (*original)(CvDiplomacyAI*, PlayerTypes, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eLostToPlayer, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeOtherPlayerWarValueLost>(host, &BeforeCvDiplomacyAI_ChangeOtherPlayerWarValueLost);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeOtherPlayerWarValueLost>(host, &AfterCvDiplomacyAI_ChangeOtherPlayerWarValueLost);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeOtherPlayerWarValueLost>(host, &ReplaceCvDiplomacyAI_ChangeOtherPlayerWarValueLost);

Code

9323// Changes the value of stuff (Units & Cities) we estimate a player has lost in a war against a another Player9324void CvDiplomacyAI::ChangeOtherPlayerWarValueLost(PlayerTypes ePlayer, PlayerTypes eLostToPlayer, int iChange)9325{9326	SetOtherPlayerWarValueLost(ePlayer, eLostToPlayer, GetOtherPlayerWarValueLost(ePlayer, eLostToPlayer) + iChange);9327}

Calls

Called by