OrionVeteran
Deity
I'd like to create a function in CvPlayer.cpp that returns the list of cities that the player owns. I want it to be exposed to python. Since the function returns a listing, it can't start out with void. What do I replace the void with? Here is what I have so far:
Code:
void CvPlayer::getSDKCityList()
{
CLinkList<int> cityList;
CvCity* pLoopCity;
int iLoop;
cityList.clear();
for (pLoopCity = firstCity(&iLoop); pLoopCity != NULL; pLoopCity = nextCity(&iLoop))
{
cityList.insertAtEnd(iLoop);
}
return cityList
}