Bazaar developer reference

CvPreGame::isWhiteFlag(PlayerTypes)

Defined in
CvPreGame.cpp, line 1273
Hook name
CivHooks::CvPreGame_isWhiteFlag

Hooks

static bool BeforeCvPreGame_isWhiteFlag(PlayerTypes p, bool& result);static void AfterCvPreGame_isWhiteFlag(PlayerTypes p, bool& result);static bool ReplaceCvPreGame_isWhiteFlag(bool (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_isWhiteFlag>(host, &BeforeCvPreGame_isWhiteFlag);CivRegisterAfter<CivHooks::CvPreGame_isWhiteFlag>(host, &AfterCvPreGame_isWhiteFlag);CivRegisterReplace<CivHooks::CvPreGame_isWhiteFlag>(host, &ReplaceCvPreGame_isWhiteFlag);

Code

1273bool isWhiteFlag(PlayerTypes p)1274{1275	if(p >= 0 && p < MAX_PLAYERS)1276		return s_whiteFlags[p];1277	return false;1278}

Calls

Called by