PHP-Code:
def onBeginGameTurn(self, argsList):
'Called at the beginning of the end of each turn'
iGameTurn = argsList[0]
CvTopCivs.CvTopCivs().turnChecker(iGameTurn)
#Historical City Founding Start#
#Players
iHolland = 0
iFrance = 1
iPortugal = 4
iSpain = 5
iEngland = 6
pHolland = gc.getPlayer(iHolland)
pFrance = gc.getPlayer(iFrance)
pSpain = gc.getPlayer(iSpain)
pPortugal = gc.getPlayer(iPortugal)
pEngland = gc.getPlayer(iEngland)
#Towns
#Start
#Spain Cities
if not pSpain.isHuman:
#Caracas
if iGameTurn == 1:
newCity = pSpain.initCity(30,31)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_WORKER'), 30, 31, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_MUSKETMAN'), 30, 31, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
#Santiago
if iGameTurn == 20:
newCity = pSpain.initCity(29,11)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_WORKER'), 29, 11, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_MUSKETMAN'), 29, 11, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
#Buenos Aires
if iGameTurn == 18:
newCity = pSpain.initCity(35,12)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_WORKER'), 35, 12, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_MUSKETMAN'), 35, 12, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
#Corpus Christi
if iGameTurn == 17:
newCity = pSpain.initCity(21,42)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_WORKER'), 21, 42, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_MUSKETMAN'), 21, 42, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
#Havanna
if iGameTurn == 17:
newCity = pSpain.initCity(27,38)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_WORKER'), 27, 38, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_MUSKETMAN'), 27, 38, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
#Port of Spain
if iGameTurn == 26:
newCity = pSpain.initCity(33,33)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_WORKER'), 33, 33, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
newUnit = pSpain.initUnit(gc.getInfoTypeForString('UNIT_MUSKETMAN'), 33, 33, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
[...]