CvPlayer::getCivilizationShortDescriptionKey() const
- Defined in
- CvPlayer.cpp, line 4484
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_getCivilizationShortDescriptionKey
Hooks
static bool BeforeCvPlayer_getCivilizationShortDescriptionKey(const CvPlayer* self, const char*& result);static void AfterCvPlayer_getCivilizationShortDescriptionKey(const CvPlayer* self, const char*& result);static const char* ReplaceCvPlayer_getCivilizationShortDescriptionKey(const char* (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getCivilizationShortDescriptionKey>(host, &BeforeCvPlayer_getCivilizationShortDescriptionKey);CivRegisterAfter<CivHooks::CvPlayer_getCivilizationShortDescriptionKey>(host, &AfterCvPlayer_getCivilizationShortDescriptionKey);CivRegisterReplace<CivHooks::CvPlayer_getCivilizationShortDescriptionKey>(host, &ReplaceCvPlayer_getCivilizationShortDescriptionKey);
Code
4484const char* CvPlayer::getCivilizationShortDescriptionKey() const4485{4486 if(isMinorCiv())4487 {4488 return GC.getMinorCivInfo(GetMinorCivAI()->GetMinorCivType())->getShortDescriptionKey();4489 }4490 else if(CvPreGame::civilizationShortDescriptionKey(GetID()).GetLength() == 0)4491 {4492 return getCivilizationInfo().getShortDescriptionKey();4493 }4494 else4495 {4496 return CvPreGame::civilizationShortDescriptionKey(GetID()).c_str();4497 }4498}
Calls
- CvCivilizationBaseInfo::getShortDescriptionKey() const
- CvGlobals::getMinorCivInfo(MinorCivTypes)
- CvMinorCivAI::GetMinorCivType() const
- CvMinorCivInfo::getShortDescriptionKey() const
- CvPlayer::getCivilizationInfo() const
- CvPlayer::GetID() const
- CvPlayer::GetMinorCivAI() const
- CvPlayer::isMinorCiv() const
- CvPreGame::civilizationShortDescriptionKey(PlayerTypes)
CvString::GetLengthstd::basic_string::c_str
Called by
43 functions in 12 files
- CvPlayerCulture::DoTurn()
- CvDiplomacyAI::DoCounters()
- CvDiplomacyAI::DoDenouncePlayer(PlayerTypes)
- CvDiplomacyAI::DoMakePublicDeclaration(PublicDeclarationTypes, int, int, PlayerTypes, PlayerTypes)
- CvDiplomacyAI::DoSendStatementToPlayer(PlayerTypes, DiploStatementTypes, int, CvDeal *)
- CvDiplomacyAI::DoTestPromises()
- CvDiplomacyAI::GetDiploStringForMessage(DiploMessageTypes, PlayerTypes, const Localization::String &, const Localization::String &)
- CvDiplomacyAI::SetDoFAccepted(PlayerTypes, bool)
- CvPlayerEspionage::AttemptCoup(uint)
- CvGame::DoResearchAgreementNotification(TeamTypes, TeamTypes)
- CvGame::SetBestGreatPeoplePlayer(PlayerTypes, int)
- CvGame::SetBestPoliciesPlayer(PlayerTypes, int)
- CvGame::SetBestWondersPlayer(PlayerTypes, int)
- CvMinorCivAI::DoBuyout(PlayerTypes, bool)
- CvMinorCivAI::DoElection()
- CvMinorCivAI::DoSetBonus(PlayerTypes, bool, bool, bool, bool, bool, PlayerTypes)
- CvMinorCivAI::DoTestProxyWarAnnouncement()
- CvMinorCivAI::DoTestProxyWarAnnouncementOnFirstContact(PlayerTypes)
- CvMinorCivAI::GetNamesListAsString(CivsList)
- CvMinorCivAI::GetStatusChangeNotificationStrings(PlayerTypes, bool, bool, bool, PlayerTypes, PlayerTypes)
- CvMinorCivQuest::DoFinishQuest()
- CvMinorCivQuest::DoStartQuest(int)
- CvPlayer::DoLiberatePlayer(PlayerTypes, int)
- CvPlayer::SetHasLostCapital(bool, PlayerTypes)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::raze(CvCity *)
- CvPlayer::setAlive(bool, bool)
- CvPlayerPolicies::SetPolicyBranchUnlocked(PolicyBranchTypes, bool, bool)
- CvGameReligions::AddReformationBelief(PlayerTypes, ReligionTypes, BeliefTypes)
- CvGameReligions::EnhanceReligion(PlayerTypes, ReligionTypes, BeliefTypes, BeliefTypes, bool)
- CvGameReligions::FoundPantheon(PlayerTypes, BeliefTypes)
- CvGameReligions::FoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, CvCity *)
- CvTeam::SetHasResearchAgreement(TeamTypes, bool)
- CvPlayerTrade::GetPlotToolTips(CvPlot *)
- CvLeague::GetCurrentEffectsSummary(PlayerTypes)
- CvLeague::GetLeagueSplashDescription(LeagueSpecialSessionTypes, bool)
- CvLeague::GetMemberDelegationDetails(PlayerTypes, PlayerTypes)
- CvLeague::GetResolutionProposeOpinionDetails(ResolutionTypes, PlayerTypes, int)
- CvLeague::GetResolutionProposeOpinionDetails(int, PlayerTypes)
- CvLeague::NotifyProposalResult(CvEnactProposal *)
- CvVoterDecision::GetVotesAsText(CvLeague *)
- LeagueHelpers::GetTextForChoice(ResolutionDecisionTypes, int)
- CvLuaPlayer::lGetCivilizationShortDescriptionKey(lua_State *)