[][src]Trait codegame::Player

pub trait Player<G: Game>: Send {
    fn get_action(
        &mut self,
        player_view: &G::PlayerView,
        debug_interface: Option<&PlayerDebugInterface<'_, G>>
    ) -> Result<G::Action, PlayerError>;
fn debug_update(
        &mut self,
        player_view: &G::PlayerView,
        debug_interface: &PlayerDebugInterface<'_, G>
    ) -> Result<(), PlayerError>; }

Required methods

fn get_action(
    &mut self,
    player_view: &G::PlayerView,
    debug_interface: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>

fn debug_update(
    &mut self,
    player_view: &G::PlayerView,
    debug_interface: &PlayerDebugInterface<'_, G>
) -> Result<(), 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...