[−][src]Trait game::layer::Layer
Required methods
fn name(&self) -> Option<&'static str>
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
Implementations
impl dyn Layer
[src]
fn simple_event(
ctx: &mut EventCtx<'_>,
minimap: &Panel,
panel: &mut Panel
) -> Option<LayerOutcome>
[src]
ctx: &mut EventCtx<'_>,
minimap: &Panel,
panel: &mut Panel
) -> Option<LayerOutcome>
Implementors
impl Layer for Elevation
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for BikeNetwork
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for CongestionCaps
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Static
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Pandemic
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Efficiency
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Occupancy
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for PopulationMap
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Backpressure
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for CompareThroughput
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Delay
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for Throughput
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_minimap(&self, g: &mut GfxCtx<'_>)
[src]
impl Layer for TrafficJams
[src]
fn name(&self) -> Option<&'static str>
[src]
fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
minimap: &Panel
) -> Option<LayerOutcome>