Bazaar developer reference

CvDiplomacyAI::GetRecklessExpanderScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 24008
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetRecklessExpanderScore

Hooks

static bool BeforeCvDiplomacyAI_GetRecklessExpanderScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetRecklessExpanderScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetRecklessExpanderScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetRecklessExpanderScore>(host, &BeforeCvDiplomacyAI_GetRecklessExpanderScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetRecklessExpanderScore>(host, &AfterCvDiplomacyAI_GetRecklessExpanderScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetRecklessExpanderScore>(host, &ReplaceCvDiplomacyAI_GetRecklessExpanderScore);

Code

24008int CvDiplomacyAI::GetRecklessExpanderScore(PlayerTypes ePlayer)24009{24010	int iOpinionWeight = 0;24011	if(IsPlayerRecklessExpander(ePlayer))24012		iOpinionWeight += /*35*/ GC.getOPINION_WEIGHT_RECKLESS_EXPANDER();24013	return iOpinionWeight;24014}

Calls

Called by