Bazaar developer reference

CvPreGame::isHuman(PlayerTypes)

Defined in
CvPreGame.cpp, line 1124
Hook name
CivHooks::CvPreGame_isHuman

Hooks

static bool BeforeCvPreGame_isHuman(PlayerTypes p, bool& result);static void AfterCvPreGame_isHuman(PlayerTypes p, bool& result);static bool ReplaceCvPreGame_isHuman(bool (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_isHuman>(host, &BeforeCvPreGame_isHuman);CivRegisterAfter<CivHooks::CvPreGame_isHuman>(host, &AfterCvPreGame_isHuman);CivRegisterReplace<CivHooks::CvPreGame_isHuman>(host, &ReplaceCvPreGame_isHuman);

Code

1124bool isHuman(PlayerTypes p)1125{1126	SlotStatus s = slotStatus(p);1127	if(s == SS_TAKEN)1128	{1129		return true;1130	}1131	else if(s == SS_OPEN)1132	{1133		return (isHotSeat() || isPitBoss() || isPlayByEmail());1134	}1135	else if(s == SS_OBSERVER)1136	{1137		return slotClaim(p) == SLOTCLAIM_ASSIGNED;1138	}1139	else1140	{1141		return false;1142	}11431144}

Calls

Called by