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
- CvGameDeals::AddProposedDeal(CvDeal)
- OldLoad(FDataStream &, CvGameDeals &)
- operator<<(FDataStream &, const CvGameDeals &)
- operator>>(FDataStream &, CvGameDeals &)
- CvDiplomacyAI::DeclareWar(PlayerTypes)
- CvDiplomacyAI::DoFirstContact(PlayerTypes)
- CvDiplomacyAI::DoKilledByPlayer(PlayerTypes)
- CvDiplomacyRequests::ActivateNext()
- CvDiplomacyRequests::EndTurn()
- CvDiplomacyRequests::SendRequest(PlayerTypes, PlayerTypes, DiploUIStateTypes, DiploMessageTypes, const char *, LeaderheadAnimationTypes, int)
- CvDllPreGame::isHuman(PlayerTypes)
- CvPlayer::isHuman() const
- CvPreGame::numHumans()
- CvUnitMission::PushMission(UnitHandle, MissionTypes, int, int, int, bool, bool, MissionAITypes, CvPlot *, CvUnit *)
- CvUnitMission::WaitFor(UnitHandle, UnitHandle)