Bazaar developer reference

CvDiplomacyAI::GetPlotBuyingAggressivePosture(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 8568
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetPlotBuyingAggressivePosture

Hooks

static bool BeforeCvDiplomacyAI_GetPlotBuyingAggressivePosture(const CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static void AfterCvDiplomacyAI_GetPlotBuyingAggressivePosture(const CvDiplomacyAI* self, PlayerTypes ePlayer, AggressivePostureTypes& result);static AggressivePostureTypes ReplaceCvDiplomacyAI_GetPlotBuyingAggressivePosture(AggressivePostureTypes (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPlotBuyingAggressivePosture>(host, &BeforeCvDiplomacyAI_GetPlotBuyingAggressivePosture);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPlotBuyingAggressivePosture>(host, &AfterCvDiplomacyAI_GetPlotBuyingAggressivePosture);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPlotBuyingAggressivePosture>(host, &ReplaceCvDiplomacyAI_GetPlotBuyingAggressivePosture);

Code

8567/// How aggressively is ePlayer buying land near us?8568AggressivePostureTypes CvDiplomacyAI::GetPlotBuyingAggressivePosture(PlayerTypes ePlayer) const8569{8570	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8571	CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");8572	return (AggressivePostureTypes) m_paePlotBuyingAggressivePosture[ePlayer];8573}

Called by