CvPlayer::isHuman() const
- Defined in
- CvPlayer.cpp, line 4311
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_isHuman
Hooks
static bool BeforeCvPlayer_isHuman(const CvPlayer* self, bool& result);static void AfterCvPlayer_isHuman(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_isHuman(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_isHuman>(host, &BeforeCvPlayer_isHuman);CivRegisterAfter<CivHooks::CvPlayer_isHuman>(host, &AfterCvPlayer_isHuman);CivRegisterReplace<CivHooks::CvPlayer_isHuman>(host, &ReplaceCvPlayer_isHuman);
Code
4311bool CvPlayer::isHuman() const4312{4313 if(GetID() == NO_PLAYER)4314 {4315 return false;4316 }43174318 return CvPreGame::isHuman(GetID());4319}
Calls
Called by
199 functions in 35 files
- CvBuilderTaskingAI::EvaluateBuilder(CvUnit *, BuilderDirective *, UINT, bool, bool, bool)
- CvBuilderTaskingAI::FindTurnsAway(CvUnit *, CvPlot *, bool)
- CvBuilderTaskingAI::LogDirective(BuilderDirective, CvUnit *, int, bool)
- CvBuilderTaskingAI::Update()
- CvCity::BuyPlot(int, int)
- CvCity::DoJONSCultureLevelIncrease()
- CvCity::GetBuyPlotCost(int, int) const
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCity::isHuman() const
- CvCity::popOrder(int, bool, bool)
- FSerialization::SyncCities()
- CvCityCitizens::DoAddBestCitizenFromUnassigned()
- CvCityCitizens::DoTurn()
- CvCityConnections::ShouldConnectToOtherPlayer(PlayerTypes)
- CvCitySpecializationAI::DoTurn()
- CvCityStrategyAI::UpdateBestYields()
- CvPlayerCulture::DoArchaeologyChoice(ArchaeologyChoiceType)
- CvPlayerCulture::DoTurn()
- CvDangerPlots::IsDangerByRelationshipZero(PlayerTypes, CvPlot *)
- CvDangerPlots::ModifyDangerByRelationship(PlayerTypes, CvPlot *, int)
- CvDealAI::DoAcceptedDeal(PlayerTypes, const CvDeal &, int, int, int)
- CvDealAI::DoHumanOfferDealToThisAI(CvDeal *)
- CvDealAI::GetCityValue(int, int, bool, PlayerTypes, bool)
- CvDealAI::IsMakeOfferForLuxuryResource(PlayerTypes, CvDeal *)
- CvDealAI::IsMakeOfferForOpenBorders(PlayerTypes, CvDeal *)
- CvDealAI::IsMakeOfferForResearchAgreement(PlayerTypes, CvDeal *)
- CvDealAI::IsOfferPeace(PlayerTypes, CvDeal *, bool)
- CvDealAI::MakeOfferForEmbassy(PlayerTypes, CvDeal *)
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvGameDeals::DoCancelAllProposedDealsWithPlayer(PlayerTypes, DiplomacyPlayerType)
- CvDiplomacyAI::DoContactMajorCivs()
- CvDiplomacyAI::DoContactPlayer(PlayerTypes)
- CvDiplomacyAI::DoCoopWarTimeStatement(PlayerTypes, DiploStatementTypes &, int &)
- CvDiplomacyAI::DoEmbassyExchange(PlayerTypes, DiploStatementTypes &, CvDeal *)
- CvDiplomacyAI::DoFirstContact(PlayerTypes)
- CvDiplomacyAI::DoInitializePersonality()
- CvDiplomacyAI::DoMakePublicDeclaration(PublicDeclarationTypes, int, int, PlayerTypes, PlayerTypes)
- CvDiplomacyAI::DoOpenBordersExchange(PlayerTypes, DiploStatementTypes &, CvDeal *)
- CvDiplomacyAI::DoRenewExpiredDeal(PlayerTypes, DiploStatementTypes &, CvDeal *)
- CvDiplomacyAI::DoSendStatementToPlayer(PlayerTypes, DiploStatementTypes, int, CvDeal *)
- CvDiplomacyAI::DoTurn(PlayerTypes, DiplomacyPlayerType)
- CvDiplomacyAI::DoUpdateMinorCivProtection(PlayerTypes, MinorCivApproachTypes)
- CvDiplomacyAI::DoUpdatePeaceTreatyWillingness()
- CvDiplomacyAI::GetBestApproachTowardsMajorCiv(PlayerTypes, int &, bool, bool, WarFaceTypes &)
- CvDiplomacyAI::IsValidUIDiplomacyTarget(PlayerTypes)
- CvDiplomacyAI::IsWillingToMakePeaceWithHuman(PlayerTypes)
- CvDiplomacyAI::MakeWar()
- CvDiplomacyRequests::ActivateNext()
- CvDiplomacyRequests::DoAIDiplomacy(PlayerTypes)
- CvDiplomacyRequests::DoAIDiplomacyWithHumans()
- CvDiplomacyRequests::HasActiveDiploRequestWithHuman(PlayerTypes)
- CvDllNetMessageHandler::ResponseEnhanceReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, int, int)
- CvDllNetMessageHandler::ResponseFoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, int, int)
- CvDllPlayer::IsHuman() const
- CvEconomicAI::DoTurn()
- CvEconomicAI::UpdatePlots()
- EconomicAIHelpers::IsTestStrategy_ConcertTour(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_DevelopingReligion(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_EarlyExpansion(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_EnoughExpansion(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_ExpandLikeCrazy(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_ExpandToOtherContinents(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_FoundCity(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_NavalMap(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_OffshoreExpansionMap(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_ReallyExpandToOtherContinents(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_TechLeader(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_TradeWithCityState(EconomicAIStrategyTypes, CvPlayer *)
- CvEspionageAI::DoTurn()
- CvPlayerEspionage::AddIntrigueMessage(PlayerTypes, PlayerTypes, PlayerTypes, BuildingTypes, ProjectTypes, CvIntrigueType, uint, CvCity *, bool)
- CvPlayerEspionage::GetIntrigueMessage(uint)
- CvPlayerEspionage::UncoverIntrigue(uint)
- CvEventLog::Add(const char *, PlayerTypes, int, int, int, int, int, int)
- CvFlavorManager::Init(CvPlayer *)
- CvGame::CheckPlayerTurnDeactivate()
- CvGame::Read(FDataStream &)
- CvGame::countHumanPlayersAlive() const
- CvGame::countHumanPlayersEverAlive() const
- CvGame::countNumHumanGameTurnActive()
- CvGame::countSeqHumanTurnsUntilPlayerTurn(PlayerTypes) const
- CvGame::doControl(ControlTypes)
- CvGame::doTurn()
- CvGame::getNumHumansInHumanWars(PlayerTypes)
- CvGame::getNumSequentialHumans(PlayerTypes)
- CvGame::isInAdvancedStart() const
- CvGame::setActivePlayer(PlayerTypes, bool, bool)
- CvGame::setGameState(GameStateTypes)
- CvGame::testExtendedGame()
- CvGame::updateMoves()
- CvGame::updateTimers()
- CvHomelandAI::ExecuteExplorerMoves()
- CvHomelandAI::ExecuteWorkerMoves(bool)
- CvHomelandAI::PlotAirliftMoves()
- CvMilitaryAI::DoTurn()
- CvMinorCivAI::DoFirstContactWithMajor(TeamTypes, bool)
- CvMinorCivAI::IsValidQuestForPlayer(PlayerTypes, MinorCivQuestTypes)
- CvNotifications::Activate(Notification &)
- CvNotifications::Add(NotificationTypes, const char *, const char *, int, int, int, int)
- CvPlayer::ChangeNumFaithGreatPeople(int)
- CvPlayer::ChangeNumFreeGreatPeople(int)
- CvPlayer::ChangeNumMayaBoosts(int)
- CvPlayer::CheckForMurder(PlayerTypes)
- CvPlayer::DoAnnounceReligionAdoption()
- CvPlayer::DoCivilianReturnLogic(bool, PlayerTypes, int)
- CvPlayer::DoLiberatePlayer(PlayerTypes, int)
- CvPlayer::DoResetCityRevoltCounter()
- CvPlayer::DoUnitReset()
- CvPlayer::GetNumUnitsSupplied() const
- CvPlayer::GetUnhappiness(CvCity *, CvCity *) const
- CvPlayer::IsAITeammateOfHuman() const
- CvPlayer::SetHasLostCapital(bool, PlayerTypes)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::addFreeUnit(UnitTypes, UnitAITypes)
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::checkRunAutoMovesForEveryone()
- CvPlayer::disconnected()
- CvPlayer::doAdvancedStartAction(AdvancedStartActionTypes, int, int, int, bool)
- CvPlayer::doTurn()
- CvPlayer::doTurnPostDiplomacy()
- CvPlayer::findNewCapital()
- CvPlayer::found(int, int, ReligionTypes)
- CvPlayer::getBuildingClassPrereqBuilding(BuildingTypes, BuildingClassTypes, int) const
- CvPlayer::getGrowthThreshold(int) const
- CvPlayer::getName() const
- CvPlayer::getNameKey() const
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPlayer::getProductionNeeded(ProjectTypes) const
- CvPlayer::getProductionNeeded(UnitTypes) const
- CvPlayer::initFreeUnits(CvGameInitialItemsOverrides &)
- CvPlayer::isTurnDone() const
- CvPlayer::processBuilding(BuildingTypes, int, bool, CvArea *)
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::setEndTurn(bool)
- CvPlayer::setLeaderType(LeaderHeadTypes)
- CvPlayer::setTurnActive(bool, bool)
- FSerialization::SyncPlayer()
- CvPlayerAI::AI_conquerCity(CvCity *, PlayerTypes)
- CvPlayerAI::AI_doTurnPost()
- CvPlayerAI::AI_doTurnPre()
- CvPlayerAI::AI_doTurnUnitsPost()
- CvPlayerAI::AI_doTurnUnitsPre()
- CvPlayerAI::AI_unitUpdate()
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::isVisibleToWatchingHuman() const
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvGameReligions::DoPlayerTurn(CvPlayer &)
- CvPlayerReligions::GetCostNextProphet(bool, bool, bool) const
- CvReligionAI::DoTurn()
- CvCitySiteEvaluator::CanFound(CvPlot *, const CvPlayer *, bool) const
- CvCitySiteEvaluator::PlotFoundValue(CvPlot *, CvPlayer *, YieldTypes, bool)
- CvTeam::DoDeclareWar(PlayerTypes, bool, TeamTypes, bool, bool)
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::changeProjectCount(ProjectTypes, int)
- CvTeam::countNumHumanGameTurnActive() const
- CvTeam::getSecretaryID() const
- CvTeam::isHuman() const
- CvTeam::makeHasMet(TeamTypes, bool)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvPlayerTrade::PlunderTradeRoute(int, CvUnit *)
- CvTreasury::CalculateInflationRate()
- CvTreasury::CalculateUnitCost(int &, int &, int &, int &)
- CvTreasury::CalculateUnitSupply(int &, int &)
- CvTreasury::GetBuildingGoldMaintenance() const
- CvUnit::DoEnhanceReligion()
- CvUnit::DoFoundReligion()
- CvUnit::GetBestBuildRoute(CvPlot *, BuildTypes *) const
- CvUnit::PerformCultureBomb(int)
- CvUnit::ShowMoves() const
- CvUnit::canBuyCityState(const CvPlot *, bool) const
- CvUnit::createCaptureUnit(const CvUnitCaptureDefinition &)
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnit::isHuman() const
- CvUnit::workRate(bool, BuildTypes) const
- FSerialization::SyncUnits()
- CvUnitMission::AutoMission(UnitHandle)
- CvGameLeagues::DoPlayerTurn(CvPlayer &)
- CvLeague::CheckProjectAchievements()
- CvLeague::GetMembersThatDislikeProposal(ResolutionTypes, PlayerTypes, int)
- CvLeague::GetMembersThatLikeProposal(ResolutionTypes, PlayerTypes, int)
- CvLeague::GetMembersThatLikeProposal(int, PlayerTypes)
- CvLeague::NotifyProjectComplete(LeagueProjectTypes)
- CvLeague::NotifyProjectProgress(LeagueProjectTypes)
- CvLeague::NotifyProposalResult(CvEnactProposal *)
- CvLeague::NotifyProposalResult(CvRepealProposal *)
- CvLeague::NotifySessionSoon(int)
- CvLeagueAI::DoTurn()
- CvLeagueAI::GetDesiredVoteCommitments(PlayerTypes)
- CvLeagueAI::GetKnowledgeGivenToOtherPlayer(PlayerTypes, CvString *)
- CvLuaPlayer::lActivateEconomicStrategy(lua_State *)
- CvLuaPlayer::lActivateMilitaryStrategy(lua_State *)
- CvLuaPlayer::lDeactivateEconomicStrategy(lua_State *)
- CvLuaPlayer::lDeactivateMilitaryStrategy(lua_State *)
- CvLuaPlayer::lGetActiveEconomicStrategies(lua_State *)
- CvLuaPlayer::lGetActiveMilitaryStrategies(lua_State *)
- CvLuaPlayer::lGetRecommendedWorkerPlots(lua_State *)
- CvLuaPlayer::lIsActiveEconomicStrategy(lua_State *)
- CvLuaPlayer::lIsActiveMilitaryStrategy(lua_State *)
- CvLuaPlayer::lIsHuman(lua_State *)