def spawnWalls(): walls = [None] * nbWalls for i in range(nbWalls): walls[i] = buildingType('wall', *wallCoordinates) return walls
def spawnBuilding(): buildings = [None] * nbBuildings for i in range(nbBuildings): buildings[i] = buildingType('office', *buildingCoordinates) return buildings