Struct map18xx::tile::Path [] [src]

pub struct Path {
    pub start_control: Option<Coordinate>,
    pub end_control: Option<Coordinate>,
    // some fields omitted
}

Path on the tile

A path is a line section that goes between start point and end point. There are two versions of each point [start|end] and [start|end]_pos, the _pos variant takes precedence over the non-_pos version. The non-_pos version should always be a position code, while the _pos version is a 3D position in hexagon-space.

Fields

Methods

impl Path
[src]

[src]

Getter that always returns the start coordinate in hexagon-space.

[src]

Getter that always returns the end coordinate in hexagon-space.

[src]

Whether the is_bridge flag is set

[src]

The radius of the corner made by the path

Trait Implementations

impl Debug for Path
[src]

[src]

Formats the value using the given formatter.

impl Clone for Path
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more