CvBaseInfo::GetTextKey() const
- Defined in
- CvInfos.cpp, line 83
- Class
- CvBaseInfo
- Hook name
CivHooks::CvBaseInfo_GetTextKey
Hooks
static bool BeforeCvBaseInfo_GetTextKey(const CvBaseInfo* self, const char*& result);static void AfterCvBaseInfo_GetTextKey(const CvBaseInfo* self, const char*& result);static const char* ReplaceCvBaseInfo_GetTextKey(const char* (*original)(const CvBaseInfo*), const CvBaseInfo* self);CivRegisterBefore<CivHooks::CvBaseInfo_GetTextKey>(host, &BeforeCvBaseInfo_GetTextKey);CivRegisterAfter<CivHooks::CvBaseInfo_GetTextKey>(host, &AfterCvBaseInfo_GetTextKey);CivRegisterReplace<CivHooks::CvBaseInfo_GetTextKey>(host, &ReplaceCvBaseInfo_GetTextKey);
Code
83const char* CvBaseInfo::GetTextKey() const84{85 return (m_strTextKey.empty())? NULL : m_strTextKey.c_str();86}
Calls
std::basic_string::c_strstd::basic_string::empty
Called by
37 functions in 11 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvCityBuildings::SetNumRealBuildingTimed(BuildingTypes, int, bool, PlayerTypes, int)
- CvCity::ChangeNumResourceLocal(ResourceTypes, int)
- CvCity::DoPickResourceDemanded(bool)
- CvCity::DoTestResourceDemanded()
- CvCity::IsBuildingLocalResourceValid(BuildingTypes, bool, CvString *) const
- CvCity::doCheckProduction()
- CvCity::getProductionNameKey() const
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCity::popOrder(int, bool, bool)
- CvPlayerEspionage::AddIntrigueMessage(PlayerTypes, PlayerTypes, PlayerTypes, BuildingTypes, ProjectTypes, CvIntrigueType, uint, CvCity *, bool)
- CvPlayerEspionage::GetIntrigueMessage(uint)
- CvGame::DoPlaceTeamInVictoryCompetition(VictoryTypes, TeamTypes)
- CvGame::setWinner(TeamTypes, VictoryTypes)
- CvActionInfo::GetTextKey() const
- CvHotKeyInfo::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvPlayer::DoTestOverResourceNotification(ResourceTypes)
- CvPlayer::canConstruct(BuildingTypes, bool, bool, bool, CvString *) const
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::getCivilizationDescriptionKey() const
- CvPlayer::getNameKey() const
- CvPlayer::processBuilding(BuildingTypes, int, bool, CvArea *)
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::doImprovement()
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::announceTechToPlayers(TechTypes, bool)
- CvTeam::changeProjectCount(ProjectTypes, int)
- CvTeam::resetVictoryProgress()
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvUnit::createCaptureUnit(const CvUnitCaptureDefinition &)
- CvUnit::getNameKey() const
- CvUnit::pillage()
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnitCombat::Attack(CvUnit &, CvPlot &, ATTACK_OPTION)
- CvUnitCombat::AttackAirSweep(CvUnit &, CvPlot &, ATTACK_OPTION)