Bazaar developer reference

CvDiplomacyAI::GetDOFAcceptedScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23871
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDOFAcceptedScore

Hooks

static bool BeforeCvDiplomacyAI_GetDOFAcceptedScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetDOFAcceptedScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetDOFAcceptedScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDOFAcceptedScore>(host, &BeforeCvDiplomacyAI_GetDOFAcceptedScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDOFAcceptedScore>(host, &AfterCvDiplomacyAI_GetDOFAcceptedScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDOFAcceptedScore>(host, &ReplaceCvDiplomacyAI_GetDOFAcceptedScore);

Code

23871int CvDiplomacyAI::GetDOFAcceptedScore(PlayerTypes ePlayer)23872{23873	int iOpinionWeight = 0;23874	// We are friends23875	if(IsDoFAccepted(ePlayer))23876		iOpinionWeight += /*-35*/ GC.getOPINION_WEIGHT_DOF();23877	return iOpinionWeight;23878}

Calls

Called by