I'm having a problem with CyMap.findCity():
NULL of course doesn't work either, even if the API actually suggests it:
The last parameter is pSkipCity and it has to be a valid CyCity instance. But it should really be valid to not add this parameter - if you don't wanna skip any city. In CvMap.cpp the value NULL is referenced in this context but the Python method isn't accepting a -1 or a None value.CyCity findCity (INT iX, INT iY, PlayerType eOwner, TeamType eTeam, BOOL bSameArea, BOOL bCoastalOnly, TeamType eTeamAtWarWith, DirectionType eDirection, CyCity pSkipCity)
NULL of course doesn't work either, even if the API actually suggests it:
The only think I could get working is to find some nonsensical CyCity object, totally out of context, to skip and use that. But there really should be a better way.CyCity* (int iX, int iY, int (PlayerTypes) eOwner = NO_PLAYER, int (TeamTypes) eTeam = NO_TEAM, bool bSameArea = true, bool bCoastalOnly = false, int (TeamTypes) eTeamAtWarWith = NO_TEAM, int (DirectionTypes) eDirection = NO_DIRECTION, CvCity* pSkipCity = NULL) - finds city