Bazaar developer reference

CvDiplomacyAI::LogExpansionAggressivePosture(CvString &, PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 27754
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_LogExpansionAggressivePosture

Hooks

static bool BeforeCvDiplomacyAI_LogExpansionAggressivePosture(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void AfterCvDiplomacyAI_LogExpansionAggressivePosture(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void ReplaceCvDiplomacyAI_LogExpansionAggressivePosture(void (*original)(CvDiplomacyAI*, CvString&, PlayerTypes), CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_LogExpansionAggressivePosture>(host, &BeforeCvDiplomacyAI_LogExpansionAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_LogExpansionAggressivePosture>(host, &AfterCvDiplomacyAI_LogExpansionAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_LogExpansionAggressivePosture>(host, &ReplaceCvDiplomacyAI_LogExpansionAggressivePosture);

Code

27753/// Log Expansion Aggressive Posture27754void CvDiplomacyAI::LogExpansionAggressivePosture(CvString& strString, PlayerTypes ePlayer)27755{27756	CvString strTemp;2775727758	// Expansion Aggressive Posture27759	switch(GetExpansionAggressivePosture(ePlayer))27760	{27761	case AGGRESSIVE_POSTURE_NONE:27762		strTemp.Format("");27763		break;27764	case AGGRESSIVE_POSTURE_LOW:27765		strTemp.Format("EAGG Low");27766		break;27767	case AGGRESSIVE_POSTURE_MEDIUM:27768		strTemp.Format("EAGG Medium");27769		break;27770	case AGGRESSIVE_POSTURE_HIGH:27771		strTemp.Format("EAGG HIGH");27772		break;27773	case AGGRESSIVE_POSTURE_INCREDIBLE:27774		strTemp.Format("EAGG **INCREDIBLE**");27775		break;27776	default:27777		strTemp.Format("XXX");27778		break;27779	}27780	strString += ", " + strTemp;27781}

Calls

Called by