Bazaar developer reference

CvDiplomacyAI::LogPlotBuyingAggressivePosture(CvString &, PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 27784
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_LogPlotBuyingAggressivePosture

Hooks

static bool BeforeCvDiplomacyAI_LogPlotBuyingAggressivePosture(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void AfterCvDiplomacyAI_LogPlotBuyingAggressivePosture(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void ReplaceCvDiplomacyAI_LogPlotBuyingAggressivePosture(void (*original)(CvDiplomacyAI*, CvString&, PlayerTypes), CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_LogPlotBuyingAggressivePosture>(host, &BeforeCvDiplomacyAI_LogPlotBuyingAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_LogPlotBuyingAggressivePosture>(host, &AfterCvDiplomacyAI_LogPlotBuyingAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_LogPlotBuyingAggressivePosture>(host, &ReplaceCvDiplomacyAI_LogPlotBuyingAggressivePosture);

Code

27783/// Log Plot Buying Aggressive Posture27784void CvDiplomacyAI::LogPlotBuyingAggressivePosture(CvString& strString, PlayerTypes ePlayer)27785{27786	CvString strTemp;2778727788	// Plot Buying Aggressive Posture27789	switch(GetPlotBuyingAggressivePosture(ePlayer))27790	{27791	case AGGRESSIVE_POSTURE_NONE:27792		strTemp.Format("");27793		break;27794	case AGGRESSIVE_POSTURE_LOW:27795		strTemp.Format("BAGG Low");27796		break;27797	case AGGRESSIVE_POSTURE_MEDIUM:27798		strTemp.Format("BAGG Medium");27799		break;27800	case AGGRESSIVE_POSTURE_HIGH:27801		strTemp.Format("BAGG HIGH");27802		break;27803	case AGGRESSIVE_POSTURE_INCREDIBLE:27804		strTemp.Format("BAGG **INCREDIBLE**");27805		break;27806	default:27807		strTemp.Format("XXX");27808		break;27809	}27810	strString += ", " + strTemp;27811}

Calls

Called by