This thread can be used for anyone with a SDK question, so that you don't have to keep making new threads, and threads don't go way off topic.
I'll start with my question:
I need a changing variable to influence the happiness of all of a player's cities. The variable is in CvPlayer and is modifiable with the methods getEnviromentMeter, setEnviromentMeter, and changeEnviromentMeter. All of these methods and variables have been properly declared. I looked around and found these two methods, also in CvPlayer:
I do not understand what these methods do.
Can someone help me?
I'll start with my question:
I need a changing variable to influence the happiness of all of a player's cities. The variable is in CvPlayer and is modifiable with the methods getEnviromentMeter, setEnviromentMeter, and changeEnviromentMeter. All of these methods and variables have been properly declared. I looked around and found these two methods, also in CvPlayer:
Code:
CvCity* CvPlayer::firstCity(int *pIterIdx, bool bRev) const
{
return !bRev ? m_cities.beginIter(pIterIdx) : m_cities.endIter(pIterIdx);
}
Code:
CvCity* CvPlayer::nextCity(int *pIterIdx, bool bRev) const
{
return !bRev ? m_cities.nextIter(pIterIdx) : m_cities.prevIter(pIterIdx);
}
I do not understand what these methods do.
Can someone help me?