Bazaar developer reference

CvPreGame::setLastHumanHandicap(PlayerTypes, HandicapTypes)

Defined in
CvPreGame.cpp, line 2624
Hook name
CivHooks::CvPreGame_setLastHumanHandicap

Hooks

static bool BeforeCvPreGame_setLastHumanHandicap(PlayerTypes p, HandicapTypes h);static void AfterCvPreGame_setLastHumanHandicap(PlayerTypes p, HandicapTypes h);static void ReplaceCvPreGame_setLastHumanHandicap(void (*original)(PlayerTypes, HandicapTypes), PlayerTypes p, HandicapTypes h);CivRegisterBefore<CivHooks::CvPreGame_setLastHumanHandicap>(host, &BeforeCvPreGame_setLastHumanHandicap);CivRegisterAfter<CivHooks::CvPreGame_setLastHumanHandicap>(host, &AfterCvPreGame_setLastHumanHandicap);CivRegisterReplace<CivHooks::CvPreGame_setLastHumanHandicap>(host, &ReplaceCvPreGame_setLastHumanHandicap);

Code

2624void setLastHumanHandicap(PlayerTypes p, HandicapTypes h)2625{2626	if(p >= 0 && p < MAX_PLAYERS){2627		s_lastHumanHandicaps.setAt(p, h);2628	}2629}

Calls

Called by