コード例 #1
0
from road_vehicle import PaxHauler, SteamRoadVehicle

consist = PaxHauler(id='ladycross_pax',
                    base_numeric_id=0,
                    name='Ladycross',
                    tram_type='RAIL',
                    vehicle_life=40,
                    intro_date=1860)

consist.add_unit(type=SteamRoadVehicle,
                 capacity=0,
                 vehicle_length=4,
                 effects=['EFFECT_SPRITE_STEAM, -2, 0, 14'],
                 always_use_same_spriterow=True)

consist.add_unit(capacity=20, vehicle_length=4, repeat=3)
コード例 #2
0
ファイル: highgate_pax.py プロジェクト: andythenorth/road-hog
from road_vehicle import PaxHauler, DieselRoadVehicle

# for each generation, bus and coach variants have same power and intro date
# coaches faster, lower capacity than equivalent bus

consist = PaxHauler(id='highgate_pax',
                    base_numeric_id=590,
                    name='Highgate',
                    power=240,
                    speed=50,
                    vehicle_life=40,
                    intro_date=1964)

consist.add_unit(type=DieselRoadVehicle, capacity=60, vehicle_length=7)
コード例 #3
0
from road_vehicle import PaxHauler, ElectricRoadVehicle

consist = PaxHauler(id='newbold_pax',
                    base_numeric_id=30,
                    name='Newbold',
                    tram_type='ELRL',
                    vehicle_life=40,
                    intro_date=1932)

consist.add_unit(type=ElectricRoadVehicle,
                 capacity=50,
                 vehicle_length=8,
                 effects=['EFFECT_SPRITE_ELECTRIC, 0, 0, 12'],
                 repeat=2)
コード例 #4
0
from road_vehicle import PaxHauler, ElectricRoadVehicle

consist = PaxHauler(id='fairlop_pax',
                    base_numeric_id=10,
                    name='Fairlop',
                    tram_type='ELRL',
                    vehicle_life=40,
                    intro_date=1903)

consist.add_unit(type=ElectricRoadVehicle,
                 capacity=30,
                 vehicle_length=6,
                 effects=['EFFECT_SPRITE_ELECTRIC, 0, 0, 12'])

consist.add_unit(capacity=25, vehicle_length=5, repeat=2)
コード例 #5
0
from road_vehicle import PaxHauler, ElectricRoadVehicle

consist = PaxHauler(id='twinhills_pax',
                    base_numeric_id=70,
                    name='Twinhills',
                    tram_type='ELRL',
                    vehicle_life=40,
                    intro_date=1990)

consist.add_unit(type=ElectricRoadVehicle,
                 capacity=70,
                 vehicle_length=8,
                 effects=['EFFECT_SPRITE_ELECTRIC, 0, 0, 10'],
                 repeat=2)
コード例 #6
0
from road_vehicle import PaxHauler, DieselRoadVehicle

# for each generation, bus and coach variants have same power and intro date
# coaches faster, lower capacity than equivalent bus

consist = PaxHauler(id='topley_pax',
                    base_numeric_id=60,
                    name='Topley',
                    power=360,
                    speed=55,
                    vehicle_life=40,
                    intro_date=1990)

consist.add_unit(type=DieselRoadVehicle, capacity=72, vehicle_length=7)
コード例 #7
0
from road_vehicle import PaxHauler, DieselRoadVehicle

# for each generation, bus and coach variants have same power and intro date
# coaches faster, lower capacity than equivalent bus

consist = PaxHauler(id='leyburn_pax',
                    base_numeric_id=20,
                    name='Leyburn',
                    power=100,  # custom power
                    speed=40,
                    vehicle_life=40,
                    intro_date=1909)

consist.add_unit(type=DieselRoadVehicle,
                 capacity=44,
                 vehicle_length=7)
コード例 #8
0
from road_vehicle import PaxHauler, ElectricRoadVehicle

consist = PaxHauler(id='northbeach_pax',
                    base_numeric_id=690,
                    name='Northbeach',
                    tram_type='ELRL',
                    vehicle_life=40,
                    intro_date=1961)

consist.add_unit(type=ElectricRoadVehicle,
                 capacity=60,
                 vehicle_length=8,
                 effects=['EFFECT_SPRITE_ELECTRIC, 0, 0, 12'],
                 repeat=2)
コード例 #9
0
from road_vehicle import PaxHauler, DieselRoadVehicle

# for each generation, bus and coach variants have same power and intro date
# coaches faster, lower capacity than equivalent bus

consist = PaxHauler(id='thunder_pax',
                    base_numeric_id=40,
                    name='Thunder',
                    power=160,
                    speed=45,
                    vehicle_life=40,
                    intro_date=1935)

consist.add_unit(type=DieselRoadVehicle, capacity=50, vehicle_length=7)