Bazaar developer reference

CvPlayer

Declared in
CvPlayer.h, line 68
Classes based on it
CvPlayerAI

One object for each player: every civilization, every city-state and the barbarians, whether a person or the game plays it. GET_PLAYER(id) returns the player with that ID. Each one is really a CvPlayerAI, a class based on this one that adds the AI's choices.

For Function Class
gold CvPlayer::GetTreasury CvTreasury
research CvPlayer::GetPlayerTechs CvPlayerTechs
policies CvPlayer::GetPlayerPolicies CvPlayerPolicies
its civilization's unique ability CvPlayer::GetPlayerTraits CvPlayerTraits
religion CvPlayer::GetReligions CvPlayerReligions
tourism and great works CvPlayer::GetCulture CvPlayerCulture
spies CvPlayer::GetEspionage CvPlayerEspionage
trade routes CvPlayer::GetTrade CvPlayerTrade
notifications CvPlayer::GetNotifications CvNotifications
how the AI sees other players CvPlayer::GetDiplomacyAI CvDiplomacyAI
how the AI values a trade CvPlayer::GetDealAI CvDealAI
a city-state's friends, ally and quests CvPlayer::GetMinorCivAI CvMinorCivAI
the AI's aims: which victory, its economy, its military CvPlayer::GetGrandStrategyAI, CvPlayer::GetEconomicAI, CvPlayer::GetMilitaryAI CvGrandStrategyAI, CvEconomicAI, CvMilitaryAI
the AI's unit moves, in battle and everywhere else CvPlayer::GetTacticalAI, CvPlayer::GetHomelandAI CvTacticalAI, CvHomelandAI

Functions