[][src]Trait codegame::GameProcessorStrategy

pub trait GameProcessorStrategy<G: Game>: Send {
    fn process_turn(
        &mut self,
        actions: HashMap<usize, G::Action>
    ) -> Vec<G::Event>

Notable traits for Vec<u8>

impl Write for Vec<u8>
;
fn game(&self) -> &G

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
;
fn finished(&self) -> bool; }

Required methods

fn process_turn(&mut self, actions: HashMap<usize, G::Action>) -> Vec<G::Event>

Notable traits for Vec<u8>

impl Write for Vec<u8>

fn game(&self) -> &G

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;

fn finished(&self) -> bool

Loading content...

Implementors

impl<G: Game> GameProcessorStrategy<G> for Repeat<G>[src]

impl<G: Game> GameProcessorStrategy<G> for Standard<G>[src]

Loading content...