Bazaar developer reference

CvGame::getActiveTeam()

Defined in
CvGame.cpp, line 4250
Class
CvGame
Hook name
CivHooks::CvGame_getActiveTeam

Hooks

static bool BeforeCvGame_getActiveTeam(CvGame* self, TeamTypes& result);static void AfterCvGame_getActiveTeam(CvGame* self, TeamTypes& result);static TeamTypes ReplaceCvGame_getActiveTeam(TeamTypes (*original)(CvGame*), CvGame* self);CivRegisterBefore<CivHooks::CvGame_getActiveTeam>(host, &BeforeCvGame_getActiveTeam);CivRegisterAfter<CivHooks::CvGame_getActiveTeam>(host, &AfterCvGame_getActiveTeam);CivRegisterReplace<CivHooks::CvGame_getActiveTeam>(host, &ReplaceCvGame_getActiveTeam);

Code

4250TeamTypes CvGame::getActiveTeam()4251{4252	PlayerTypes eActivePlayer = getActivePlayer();4253	if(eActivePlayer == NO_PLAYER)4254	{4255		return NO_TEAM;4256	}4257	else4258	{4259		return (TeamTypes)GET_PLAYER(eActivePlayer).getTeam();4260	}4261}

Calls

Called by

68 functions in 16 files