Bazaar developer reference

CvGameCulture::DoTurn()

Defined in
CvCultureClasses.cpp, line 119
Class
CvGameCulture
Hook name
CivHooks::CvGameCulture_DoTurn

Hooks

static bool BeforeCvGameCulture_DoTurn(CvGameCulture* self);static void AfterCvGameCulture_DoTurn(CvGameCulture* self);static void ReplaceCvGameCulture_DoTurn(void (*original)(CvGameCulture*), CvGameCulture* self);CivRegisterBefore<CivHooks::CvGameCulture_DoTurn>(host, &BeforeCvGameCulture_DoTurn);CivRegisterAfter<CivHooks::CvGameCulture_DoTurn>(host, &AfterCvGameCulture_DoTurn);CivRegisterReplace<CivHooks::CvGameCulture_DoTurn>(host, &ReplaceCvGameCulture_DoTurn);

Code

118/// Run the turn culture computations for all the players119void CvGameCulture::DoTurn()120{121	for (uint uiPlayer = 0; uiPlayer < MAX_MAJOR_CIVS; uiPlayer++)122	{123		PlayerTypes ePlayer = (PlayerTypes)uiPlayer;124		CvPlayer &kPlayer = GET_PLAYER(ePlayer);125		if (kPlayer.isAlive())126		{127			kPlayer.GetCulture()->DoTurn();128		}129	}130}

Calls

Called by