Skip to content

Commit

Permalink
(RV) add a second roster
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Oct 7, 2023
1 parent f27934a commit 911ad62
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
17 changes: 17 additions & 0 deletions road_vehicle/rosters/norbury.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from ..vehicles.buses import (
northwing,
milkyway_2decker,
)
from ..vehicles.lorries import freedom, freedom_mkii, shield, happyone as happyone_truck, yellowriver
from road_vehicle.lib.roster import Roster

roster = Roster(
northwing,
milkyway_2decker,
happyone_truck,
freedom,
freedom_mkii,
shield,
yellowriver,
nova,
)
25 changes: 25 additions & 0 deletions road_vehicle/vehicles/buses/northwing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from datetime import date
from road_vehicle.lib import ABus, BiasPlyTire
from road_vehicle.lib.graphics.autowolf import AutoWolf
from agrf.variant import AVariant


variant = AVariant(
real_class=ABus,
id=0x1060,
name="Northwing Bus",
translation_name="NORTHWING",
introduction_date=date(1957, 1, 1),
vehicle_life=15,
model_life=30,
max_speed=ABus.kmh(55), # No data
power=ABus.hp(95),
weight=5.0,
techclass="bus",
cargo_capacity=80,
real_dimensions=(8.2, 2.5, 3.05),
real_x_dimensions=(0, 4.46, 0),
axle_track=(1.70, 1.74), # No data, using CA10
tire=BiasPlyTire(9, 20), # No data, using CA10
graphics_helper=AutoWolf("placeholder"),
)

0 comments on commit 911ad62

Please sign in to comment.