Example #1
0
PROVINCE_DATA = assignRegion('SCANDINAVIA', [
    {
        'name': 'STOCKHOLM',
        'displayName': 'Stockholm',
        'capital': {
            'x': 1780,
            'y': 660,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'UPPSALA',
        'displayName': 'Uppsala',
        'capital': {
            'x': 1760,
            'y': 630,
        },
        'terrainTiles': [],
    },
    {
        'name': 'OSTERSUND',
        'displayName': 'Östersund',
        'capital': {
            'x': 1690,
            'y': 470,
        },
        'terrainTiles': [],
    },
    {
        'name': 'UMEA',
        'displayName': 'Umeå',
        'capital': {
            'x': 1890,
            'y': 440,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'OREBRO',
        'displayName': 'Örebro',
        'capital': {
            'x': 1680,
            'y': 660,
        },
        'terrainTiles': [],
    },
    {
        'name': 'NORRKOPING',
        'displayName': 'Norrköping',
        'capital': {
            'x': 1720,
            'y': 720,
        },
        'terrainTiles': [],
    },
    {
        'name': 'GOTHENBURG',
        'displayName': 'Gothenburg',
        'capital': {
            'x': 1520,
            'y': 750,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'MALMO',
        'displayName': 'Malmö',
        'capital': {
            'x': 1580,
            'y': 850,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'KALMAR',
        'displayName': 'Kalmar',
        'capital': {
            'x': 1720,
            'y': 790,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'VASA',
        'displayName': 'Vasa',
        'capital': {
            'x': 1930,
            'y': 490,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'HELSINGFORS',
        'displayName': 'Helsingfors',
        'capital': {
            'x': 2050,
            'y': 620,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
])
Example #2
0
from ct.data.util import assignRegion

REGION_DATA = {
    'name': 'SCOTLAND',
    'displayName': 'Scotland',
}

PROVINCE_DATA = assignRegion('SCOTLAND', [{
    'name': 'EDINBURGH',
    'displayName': 'Edinburgh',
    'capital': {
        'x': 890,
        'y': 840
    },
    'isCoastal': True,
    'terrainTiles': []
}, {
    'name': 'GLASGOW',
    'displayName': 'Glasgow',
    'capital': {
        'x': 840,
        'y': 850
    },
    'isCoastal': True,
    'terrainTiles': []
}])

PROVINCE_CONNECTIONS = [
    ("EDINBURGH", "GLASGOW"),
]
Example #3
0
PROVINCE_DATA = assignRegion('ENGLAND', [
    {
        'name':
        'LONDON',
        'displayName':
        'London',
        'capital': {
            'x': 1010,
            'y': 1060
        },
        'isCoastal':
        True,
        'terrainTiles': [
            {
                'terrainType': 'TERRAIN_GRAIN_FARM',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_GRAIN_FARM',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_GRAIN_FARM',
                'distanceFromCapital': 2
            },
            {
                'terrainType': 'TERRAIN_HORSE_RANCH',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_FERTILE_HILLS',
                'distanceFromCapital': 3,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_HARDWOOD_FOREST',
                'distanceFromCapital': 2,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_HARDWOOD_FOREST',
                'distanceFromCapital': 5,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_SWAMP',
                'distanceFromCapital': 2
            },
            {
                'terrainType': 'TERRAIN_SWAMP',
                'distanceFromCapital': 4
            },
        ],
    },
    {
        'name':
        'OXFORD',
        'displayName':
        'Oxford',
        'capital': {
            'x': 960,
            'y': 1045
        },
        'terrainTiles': [
            {
                'terrainType': 'TERRAIN_FERTILE_HILLS',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_FERTILE_HILLS',
                'distanceFromCapital': 3,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_GRAIN_FARM',
                'distanceFromCapital': 4,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
        ],
    },
    {
        'name': 'CAMBRIDGE',
        'displayName': 'Cambridge',
        'capital': {
            'x': 1020,
            'y': 1010
        },
        'terrainTiles': [],
    },
    {
        'name':
        'BRISTOL',
        'displayName':
        'Bristol',
        'capital': {
            'x': 910,
            'y': 1060
        },
        'terrainTiles': [
            {
                'terrainType': 'TERRAIN_BARREN_HILLS',
                'distanceFromCapital': 3,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1,
                'resourceType': 'RESOURCE_IRON'
            },
            {
                'terrainType': 'TERRAIN_BARREN_HILLS',
                'distanceFromCapital': 4,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1,
                'resourceType': 'RESOURCE_IRON'
            },
            {
                'terrainType': 'TERRAIN_SWAMP',
                'distanceFromCapital': 2
            },
            {
                'terrainType': 'TERRAIN_SWAMP',
                'distanceFromCapital': 3
            },
        ],
    },
    {
        'name':
        'PLYMOUTH',
        'displayName':
        'Plymouth',
        'capital': {
            'x': 860,
            'y': 1110
        },
        'isCoastal':
        True,
        'terrainTiles': [
            {
                'terrainType': 'TERRAIN_SWAMP',
                'distanceFromCapital': 2,
                'roadLevel': 'ROAD_LEVEL_NONE'
            },
        ],
    },
    {
        'name': 'SOUTHAMPTON',
        'displayName': 'Southampton',
        'capital': {
            'x': 960,
            'y': 1090
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
])
Example #4
0
PROVINCE_DATA = assignRegion('FRANCE', [
    {
        'name':
        'PARIS',
        'displayName':
        'Paris',
        'capital': {
            'x': 1120,
            'y': 1190
        },
        'terrainTiles': [
            {
                'terrainType': 'TERRAIN_GRAIN_FARM',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_GRAIN_FARM',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
            {
                'terrainType': 'TERRAIN_HORSE_RANCH',
                'distanceFromCapital': 1,
                'roadLevel': 'ROAD_LEVEL_PRIMITIVE',
                'devLevel': 1
            },
        ],
    },
    {
        'name': 'CAEN',
        'displayName': 'Caen',
        'capital': {
            'x': 1020,
            'y': 1180
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'REIMS',
        'displayName': 'Reims',
        'capital': {
            'x': 1190,
            'y': 1160
        },
        'terrainTiles': [],
    },
    {
        'name': 'AMIENS',
        'displayName': 'Amiens',
        'capital': {
            'x': 1130,
            'y': 1130
        },
        'terrainTiles': [],
    },
    {
        'name': 'METZ',
        'displayName': 'Metz',
        'capital': {
            'x': 1240,
            'y': 1180
        },
        'terrainTiles': [],
    },
    {
        'name': 'NANCY',
        'displayName': 'Nancy',
        'capital': {
            'x': 1240,
            'y': 1220
        },
        'terrainTiles': [],
    },
    {
        'name': 'STRASBOURG',
        'displayName': 'Strasbourg',
        'capital': {
            'x': 1300,
            'y': 1200
        },
        'terrainTiles': [],
    },
    {
        'name': 'CALAIS',
        'displayName': 'Calais',
        'capital': {
            'x': 1120,
            'y': 1090
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'ORLEANS',
        'displayName': 'Orléans',
        'capital': {
            'x': 1110,
            'y': 1250
        },
        'terrainTiles': [],
    },
    {
        'name': 'DIJON',
        'displayName': 'Dijon',
        'capital': {
            'x': 1210,
            'y': 1300
        },
        'terrainTiles': [],
    },
    {
        'name': 'LYON',
        'displayName': 'Lyon',
        'capital': {
            'x': 1195,
            'y': 1370
        },
        'terrainTiles': [],
    },
    {
        'name': 'BREST',
        'displayName': 'Brest',
        'capital': {
            'x': 820,
            'y': 1220
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'RENNES',
        'displayName': 'Rennes',
        'capital': {
            'x': 930,
            'y': 1230
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'NANTES',
        'displayName': 'Nantes',
        'capital': {
            'x': 940,
            'y': 1280
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'TOURS',
        'displayName': 'Tours',
        'capital': {
            'x': 1030,
            'y': 1265
        },
        'terrainTiles': [],
    },
    {
        'name': 'LAROCHELLE',
        'displayName': 'La Rochelle',
        'capital': {
            'x': 970,
            'y': 1350
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'BORDEAUX',
        'displayName': 'Bordeaux',
        'capital': {
            'x': 990,
            'y': 1410
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'LIMOGES',
        'displayName': 'Limoges',
        'capital': {
            'x': 1070,
            'y': 1370
        },
        'terrainTiles': [],
    },
    {
        'name': 'TOULOUSE',
        'displayName': 'Toulouse',
        'capital': {
            'x': 1070,
            'y': 1460
        },
        'terrainTiles': [],
    },
    {
        'name': 'MONTPELLIER',
        'displayName': 'Montpellier',
        'capital': {
            'x': 1170,
            'y': 1460
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'MARSEILLE',
        'displayName': 'Marseille',
        'capital': {
            'x': 1240,
            'y': 1480
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
])
Example #5
0
testingMapData = assignRegion('ENGLAND', [
    {
        'name':
        'LONDON',
        'displayName':
        'London',
        'capital': {
            'x': 1010,
            'y': 1060
        },
        'isCoastal':
        True,
        'terrainTiles': [
            {
                'terrainType': TERRAIN_GRAIN_FARM,
                'distanceFromCapital': 1,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1
            },
            {
                'terrainType': TERRAIN_GRAIN_FARM,
                'distanceFromCapital': 1,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1
            },
            {
                'terrainType': TERRAIN_GRAIN_FARM,
                'distanceFromCapital': 1,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1
            },
            {
                'terrainType': TERRAIN_HORSE_RANCH,
                'distanceFromCapital': 1,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1
            },
        ],
    },
    {
        'name':
        'OXFORD',
        'displayName':
        'Oxford',
        'capital': {
            'x': 960,
            'y': 1045
        },
        'terrainTiles': [
            {
                'terrainType': TERRAIN_FERTILE_HILLS,
                'distanceFromCapital': 3,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1
            },
            {
                'terrainType': TERRAIN_GRAIN_FARM,
                'distanceFromCapital': 1,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1
            },
            {
                'terrainType': TERRAIN_GRAIN_FARM,
                'distanceFromCapital': 1,
                'roadLevel': ROAD_LEVEL_PRIMITIVE
            },
        ],
    },
    {
        'name':
        'BRISTOL',
        'displayName':
        'BRISTOL',
        'capital': {
            'x': 960,
            'y': 1045
        },
        'terrainTiles': [
            {
                'terrainType': TERRAIN_BARREN_HILLS,
                'distanceFromCapital': 3,
                'roadLevel': ROAD_LEVEL_PRIMITIVE,
                'devLevel': 1,
                'resourceType': RESOURCE_IRON
            },
        ],
    },
])
Example #6
0
PROVINCE_DATA = assignRegion('SPAIN', [
    {
        'name': 'MADRID',
        'displayName': 'Madrid',
        'capital': {
            'x': 860,
            'y': 1610,
        },
        'terrainTiles': [],
    },
    {
        'name': 'TOLEDO',
        'displayName': 'Toledo',
        'capital': {
            'x': 850,
            'y': 1640,
        },
        'terrainTiles': [],
    },
    {
        'name': 'CUENCA',
        'displayName': 'Cuenca',
        'capital': {
            'x': 930,
            'y': 1650,
        },
        'terrainTiles': [],
    },
    {
        'name': 'VALLADOLID',
        'displayName': 'Valladolid',
        'capital': {
            'x': 810,
            'y': 1540,
        },
        'terrainTiles': [],
    },
    {
        'name': 'SALAMANCA',
        'displayName': 'Salamanca',
        'capital': {
            'x': 780,
            'y': 1580,
        },
        'terrainTiles': [],
    },
    {
        'name': 'BADAJOZ',
        'displayName': 'Badajoz',
        'capital': {
            'x': 730,
            'y': 1690,
        },
        'terrainTiles': [],
    },
    {
        'name': 'SEVILLE',
        'displayName': 'Seville',
        'capital': {
            'x': 750,
            'y': 1765,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'MALAGA',
        'displayName': 'Málaga',
        'capital': {
            'x': 815,
            'y': 1815,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'JAEN',
        'displayName': 'Jaén',
        'capital': {
            'x': 860,
            'y': 1765,
        },
        'terrainTiles': [],
    },
    {
        'name': 'GIBRALTAR',
        'displayName': 'Gibraltar',
        'capital': {
            'x': 780,
            'y': 1840,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'ALMERIA',
        'displayName': 'Almería',
        'capital': {
            'x': 910,
            'y': 1810,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'MURCIA',
        'displayName': 'Murcia',
        'capital': {
            'x': 965,
            'y': 1755,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'GIJON',
        'displayName': 'Gijón',
        'capital': {
            'x': 780,
            'y': 1470,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'LEON',
        'displayName': 'León',
        'capital': {
            'x': 780,
            'y': 1500,
        },
        'terrainTiles': [],
    },
    {
        'name': 'ACORUNA',
        'displayName': 'A Coruña',
        'capital': {
            'x': 680,
            'y': 1465,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'BILBAO',
        'displayName': 'Bilbao',
        'capital': {
            'x': 870,
            'y': 1480,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'NAVARRA',
        'displayName': 'Navarra',
        'capital': {
            'x': 970,
            'y': 1480,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'ZARAGOZA',
        'displayName': 'Zaragoza',
        'capital': {
            'x': 990,
            'y': 1540,
        },
        'terrainTiles': [],
    },
    {
        'name': 'GIRONA',
        'displayName': 'Girona',
        'capital': {
            'x': 1150,
            'y': 1520,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'BARCELONA',
        'displayName': 'Barcelona',
        'capital': {
            'x': 1130,
            'y': 1550,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'TARRAGONA',
        'displayName': 'Tarragona',
        'capital': {
            'x': 1100,
            'y': 1580,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'VALENCIA',
        'displayName': 'Valencia',
        'capital': {
            'x': 1000,
            'y': 1670,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
])
Example #7
0
PROVINCE_DATA = assignRegion('PORTUGAL', [
    {
        'name': 'LISBON',
        'displayName': 'Lisbon',
        'capital': {
            'x': 640,
            'y': 1700,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'EVORA',
        'displayName': 'Evora',
        'capital': {
            'x': 690,
            'y': 1720,
        },
        'terrainTiles': [],
    },
    {
        'name': 'BEJA',
        'displayName': 'Beja',
        'capital': {
            'x': 685,
            'y': 1750,
        },
        'terrainTiles': [],
    },
    {
        'name': 'LAGOS',
        'displayName': 'Lagos',
        'capital': {
            'x': 650,
            'y': 1780,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'COIMBRA',
        'displayName': 'Coimbra',
        'capital': {
            'x': 660,
            'y': 1630,
        },
        'terrainTiles': [],
    },
    {
        'name': 'GUARDA',
        'displayName': 'Guarda',
        'capital': {
            'x': 700,
            'y': 1610,
        },
        'terrainTiles': [],
    },
    {
        'name': 'PORTO',
        'displayName': 'Porto',
        'capital': {
            'x': 645,
            'y': 1560,
        },
        'isCoastal': True,
        'terrainTiles': [],
    },
    {
        'name': 'BRAGANCA',
        'displayName': 'Bragança',
        'capital': {
            'x': 710,
            'y': 1540,
        },
        'terrainTiles': [],
    },
])