[−][src]Trait game::layer::Layer
Required methods
fn name(&self) -> Option<&'static str>
fn event(
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> Option<LayerOutcome>
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite,
composite: &mut Composite
) -> Option<LayerOutcome>
[src]
ctx: &mut EventCtx,
minimap: &Composite,
composite: &mut Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
_: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
_: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> 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: &Composite
) -> Option<LayerOutcome>
[src]
&mut self,
ctx: &mut EventCtx,
app: &mut App,
minimap: &Composite
) -> Option<LayerOutcome>