Bazaar developer reference

CvGame::DoMinorBuyout(PlayerTypes, PlayerTypes)

Defined in
CvGame.cpp, line 10581
Class
CvGame
Hook name
CivHooks::CvGame_DoMinorBuyout

Hooks

static bool BeforeCvGame_DoMinorBuyout(CvGame* self, PlayerTypes eMajor, PlayerTypes eMinor);static void AfterCvGame_DoMinorBuyout(CvGame* self, PlayerTypes eMajor, PlayerTypes eMinor);static void ReplaceCvGame_DoMinorBuyout(void (*original)(CvGame*, PlayerTypes, PlayerTypes), CvGame* self, PlayerTypes eMajor, PlayerTypes eMinor);CivRegisterBefore<CivHooks::CvGame_DoMinorBuyout>(host, &BeforeCvGame_DoMinorBuyout);CivRegisterAfter<CivHooks::CvGame_DoMinorBuyout>(host, &AfterCvGame_DoMinorBuyout);CivRegisterReplace<CivHooks::CvGame_DoMinorBuyout>(host, &ReplaceCvGame_DoMinorBuyout);

Code

10580/// Do the action of a major buying out a minor and acquiring it10581void CvGame::DoMinorBuyout(PlayerTypes eMajor, PlayerTypes eMinor)10582{10583	CvAssertMsg(eMajor >= 0, "eMajor is expected to be non-negative (invalid Index)");10584	CvAssertMsg(eMajor < MAX_MAJOR_CIVS, "eMajor is expected to be within maximum bounds (invalid Index)");10585	CvAssertMsg(eMinor >= MAX_MAJOR_CIVS, "eMinor is not in expected range (invalid Index)");10586	CvAssertMsg(eMinor < MAX_CIV_PLAYERS, "eMinor is not in expected range (invalid Index)");1058710588	gDLL->sendMinorBuyout(eMajor, eMinor);10589}

Calls

Called by