[][src]Trait codegame::Player

pub trait Player<G: Game>: Send {
    fn get_action(
        &mut self,
        view: &G::PlayerView,
        custom_data_handler: Option<&dyn Fn(G::CustomData)>
    ) -> Result<G::Action, PlayerError>; }

Required methods

fn get_action(
    &mut self,
    view: &G::PlayerView,
    custom_data_handler: Option<&dyn Fn(G::CustomData)>
) -> Result<G::Action, PlayerError>

Loading content...

Implementations on Foreign Types

impl<G: Game, T: Player<G> + ?Sized> Player<G> for Box<T>[src]

Loading content...

Implementors

impl<G: Game> Player<G> for EmptyPlayer where
    G::Action: Default
[src]

impl<G: Game> Player<G> for ErroredPlayer[src]

impl<G: Game> Player<G> for StreamPlayer<G>[src]

impl<G: Game> Player<G> for TcpPlayer<G>[src]

Loading content...