Struct map18xx::tile::Tile
[−]
[src]
pub struct Tile { /* fields omitted */ }
The specification of a tile to be used in the game
Methods
impl Tile
[src]
fn set_definition(&mut self, definition: &TileDefinition)
[src]
fn base_tile(&self) -> String
[src]
Trait Implementations
impl Default for Tile
[src]
impl TileSpec for Tile
[src]
fn color(&self) -> Color
[src]
fn name(&self) -> &str
[src]
The number of the tile, should be the first text specified
fn set_name(&mut self, name: String)
[src]
fn paths(&self) -> Vec<Path>
[src]
The paths on the tile.
fn cities(&self) -> Vec<City>
[src]
The city revenue locations on the tile.
fn stops(&self) -> Vec<Stop>
[src]
The stop revenue locations on the tile
fn is_lawson(&self) -> bool
[src]
Whether a tile should be drawn as lawson track
fn get_text(&self, id: &str) -> &str
[src]
fn text_position(&self, id: usize) -> Option<Vector3<f64>>
[src]
fn text_spec(&self) -> Vec<Text>
[src]
fn arrows(&self) -> Vec<Coordinate>
[src]
Arrows on the edge of a tile
fn revenue_track(&self) -> Option<RevenueTrack>
[src]
Revenue track on the tile
fn terrain(&self) -> Option<Terrain>
[src]
fn orientation(&self) -> f64
[src]
Rotation of the tile