Bazaar developer reference

CvDiplomacyAI::LogMilitaryAggressivePosture(CvString &, PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 27724
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_LogMilitaryAggressivePosture

Hooks

static bool BeforeCvDiplomacyAI_LogMilitaryAggressivePosture(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void AfterCvDiplomacyAI_LogMilitaryAggressivePosture(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void ReplaceCvDiplomacyAI_LogMilitaryAggressivePosture(void (*original)(CvDiplomacyAI*, CvString&, PlayerTypes), CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_LogMilitaryAggressivePosture>(host, &BeforeCvDiplomacyAI_LogMilitaryAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_LogMilitaryAggressivePosture>(host, &AfterCvDiplomacyAI_LogMilitaryAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_LogMilitaryAggressivePosture>(host, &ReplaceCvDiplomacyAI_LogMilitaryAggressivePosture);

Code

27723/// Log Military Aggressive Posture27724void CvDiplomacyAI::LogMilitaryAggressivePosture(CvString& strString, PlayerTypes ePlayer)27725{27726	CvString strTemp;2772727728	// Military Aggressive Posture27729	switch(GetMilitaryAggressivePosture(ePlayer))27730	{27731	case AGGRESSIVE_POSTURE_NONE:27732		strTemp.Format("");27733		break;27734	case AGGRESSIVE_POSTURE_LOW:27735		strTemp.Format("MAGG Low");27736		break;27737	case AGGRESSIVE_POSTURE_MEDIUM:27738		strTemp.Format("MAGG Medium");27739		break;27740	case AGGRESSIVE_POSTURE_HIGH:27741		strTemp.Format("MAGG HIGH");27742		break;27743	case AGGRESSIVE_POSTURE_INCREDIBLE:27744		strTemp.Format("MAGG **INCREDIBLE**");27745		break;27746	default:27747		strTemp.Format("XXX");27748		break;27749	}27750	strString += ", " + strTemp;27751}

Calls

Called by