[−][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 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 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 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>