Bazaar developer reference

CvPreGame::handicap(PlayerTypes)

Defined in
CvPreGame.cpp, line 1099
Hook name
CivHooks::CvPreGame_handicap

Hooks

static bool BeforeCvPreGame_handicap(PlayerTypes p, HandicapTypes& result);static void AfterCvPreGame_handicap(PlayerTypes p, HandicapTypes& result);static HandicapTypes ReplaceCvPreGame_handicap(HandicapTypes (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_handicap>(host, &BeforeCvPreGame_handicap);CivRegisterAfter<CivHooks::CvPreGame_handicap>(host, &AfterCvPreGame_handicap);CivRegisterReplace<CivHooks::CvPreGame_handicap>(host, &ReplaceCvPreGame_handicap);

Code

1099HandicapTypes handicap(PlayerTypes p)1100{1101	if(p >= 0 && p < MAX_PLAYERS)1102		return s_handicaps[p];1103	return NO_HANDICAP;1104}

Calls

Called by