[−][src]Struct codegame::GameScreen
Implementations
impl<G: Game, R: Renderer<G>> GameScreen<G, R>
[src]
pub fn new(
geng: &Rc<Geng>,
processor: GameProcessor<G>,
renderer: R,
preferences: Rc<RefCell<AutoSave<AppPreferences<R::Preferences>>>>
) -> Self
[src]
geng: &Rc<Geng>,
processor: GameProcessor<G>,
renderer: R,
preferences: Rc<RefCell<AutoSave<AppPreferences<R::Preferences>>>>
) -> Self
pub fn replay(
geng: &Rc<Geng>,
history: History<G, R>,
renderer: R,
preferences: Rc<RefCell<AutoSave<AppPreferences<R::Preferences>>>>
) -> Self
[src]
geng: &Rc<Geng>,
history: History<G, R>,
renderer: R,
preferences: Rc<RefCell<AutoSave<AppPreferences<R::Preferences>>>>
) -> Self
Trait Implementations
impl<G: Game, R: Renderer<G>> State for GameScreen<G, R> where
Self: 'static,
[src]
Self: 'static,
fn update(&mut self, delta_time: f64)
[src]
fn draw(&mut self, framebuffer: &mut Framebuffer)
[src]
fn handle_event(&mut self, event: Event)
[src]
fn transition(&mut self) -> Option<Transition>
[src]
Auto Trait Implementations
impl<G, R> !RefUnwindSafe for GameScreen<G, R>
impl<G, R> !Send for GameScreen<G, R>
impl<G, R> !Sync for GameScreen<G, R>
impl<G, R> Unpin for GameScreen<G, R> where
G: Unpin,
R: Unpin,
<G as Game>::Event: Unpin,
<R as Renderer<G>>::ExtraData: Unpin,
G: Unpin,
R: Unpin,
<G as Game>::Event: Unpin,
<R as Renderer<G>>::ExtraData: Unpin,
impl<G, R> !UnwindSafe for GameScreen<G, R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow(&self) -> &TⓘImportant traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Important traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘImportant traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Important traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,