Struct n18ui::state::search::Found [−][src]
pub struct Found { /* fields omitted */ }
Expand description
Displays the optimal routes for the selected company, once they have been found.
Implementations
pub fn new(
assets: &Assets,
controller: &mut dyn UiController,
active_hex: HexAddress,
abbrev: String,
best_routes: Option<(Token, Routes)>
) -> Self
pub fn show_dividends<T>(&self, assets: &Assets, controller: &mut T) -> bool where
T: UiController + Sized,
pub fn show_dividends<T>(&self, assets: &Assets, controller: &mut T) -> bool where
T: UiController + Sized,
Displays the dividends for the optimal routes (if any).
Returns true
if the map surface should be redrawn, otherwise returns
false
.
Returns the window title, which shows the company name and either the net revenue, or the revenue for the currently-selected route.