CvPlayer::getTotalPopulation() const
- Defined in
- CvPlayer.cpp, line 10209
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_getTotalPopulation
Hooks
static bool BeforeCvPlayer_getTotalPopulation(const CvPlayer* self, int& result);static void AfterCvPlayer_getTotalPopulation(const CvPlayer* self, int& result);static int ReplaceCvPlayer_getTotalPopulation(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getTotalPopulation>(host, &BeforeCvPlayer_getTotalPopulation);CivRegisterAfter<CivHooks::CvPlayer_getTotalPopulation>(host, &AfterCvPlayer_getTotalPopulation);CivRegisterReplace<CivHooks::CvPlayer_getTotalPopulation>(host, &ReplaceCvPlayer_getTotalPopulation);
Code
10209int CvPlayer::getTotalPopulation() const10210{10211 return m_iTotalPopulation;10212}
Calls
FAutoVariable::operator const int &
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvPlayerCulture::ComputePublicOpinionUnhappiness(int, int &, int &)
- CvDiplomacyAI::GetInsultHumanMessage()
- EconomicAIHelpers::IsTestStrategy_NeedHappiness(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_NeedHappinessCritical(EconomicAIStrategyTypes, CvPlayer *)
- CvGame::calculateSyncChecksum()
- CvPlayer::GatherPerTurnReplayStats(int)
- CvPlayer::GetNumUnitsSuppliedByPopulation() const
- CvPlayer::GetScoreFromPopulation() const
- CvPlayer::calculateEconomicMight() const
- CvPlayer::getAveragePopulation() const
- CvPlayer::setTeam(TeamTypes)
- CvLuaPlayer::lGetTotalPopulation(lua_State *)