Class: Road


# Road

Every road on the map is an instance of the Road class.

Roads should be used to take your Vehicles between cities. Roads may have weights, use them to your favor when delivering Passengers.

Constructor

# new Road ()




# Members

# Road.id {string}

constant

Type: string
Description

Road's id (may be between "A" and "Z").




# Road.from {City}

constant

Type: City
Description

The City this Road starts from.




# Road.to {City}

constant

Type: City
Description

The City this Road leads to.




# Road.travelTime {number}

constant

Type: number
Description

Necessary time to travel in this road. It's the same for all Vehicles.




# Road.dampering {number}

constant

Type: number
Description

How better or worse is this Road compared to other roads, some levels may use this to tweak the Road speed.