Crate n18tile

Crate n18tile 

Source

Modules§

city
Cities and token spaces.
connection
Connections between track segments, cities, and tile edges.
draw
Generic trait for tiles and tile elements that draw themselves.
ekmf
Calculate maximum network flows using the Edmonds-Karp algorithm.
label
Tile labels, such as tile names, city names, and revenue.
tile
Tiles that can contain track segments, cities, and token spaces.
track
Track segments.
upgrade
Update placed tokens when upgrading tiles.

Structs§

City
Cities that are connected by track.
Connections
Dit
Tile
A tile contains some number of track segments and cities.
TokenSpace
Track
Track segments along which trains can run routes.

Enums§

Connection
DitShape
A dit may have one of several shapes.
Label
The different types of labels that may appear on a tile.
Rotation
Tokens
TrackCurve
The shapes that track segments may take.
TrackEnd
Each track segment has two ends.

Traits§

Draw

Type Aliases§

LabelAndPos