[−][src]Trait codegame::Player
Required methods
fn get_action(
&mut self,
player_view: &G::PlayerView,
debug_interface: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>
&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>
&mut self,
player_view: &G::PlayerView,
debug_interface: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>
Implementations on Foreign Types
impl<G: Game, T: Player<G> + ?Sized> Player<G> for Box<T>[src]
fn get_action(
&mut self,
view: &G::PlayerView,
debug_interface: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>[src]
&mut self,
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>[src]
&mut self,
player_view: &G::PlayerView,
debug_interface: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>
Implementors
impl<G: Game> Player<G> for EmptyPlayer where
G::Action: Default, [src]
G::Action: Default,
fn get_action(
&mut self,
_: &G::PlayerView,
_: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>[src]
&mut self,
_: &G::PlayerView,
_: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>
fn debug_update(
&mut self,
_: &G::PlayerView,
_: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>[src]
&mut self,
_: &G::PlayerView,
_: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>
impl<G: Game> Player<G> for ErroredPlayer[src]
fn get_action(
&mut self,
_: &G::PlayerView,
_: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>[src]
&mut self,
_: &G::PlayerView,
_: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>
fn debug_update(
&mut self,
_: &G::PlayerView,
_: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>[src]
&mut self,
_: &G::PlayerView,
_: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>
impl<G: Game> Player<G> for StreamPlayer<G>[src]
fn get_action(
&mut self,
player_view: &G::PlayerView,
debug_interface: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>[src]
&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>[src]
&mut self,
player_view: &G::PlayerView,
debug_interface: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>
impl<G: Game> Player<G> for TcpPlayer<G>[src]
fn get_action(
&mut self,
player_view: &G::PlayerView,
debug_interface: Option<&PlayerDebugInterface<'_, G>>
) -> Result<G::Action, PlayerError>[src]
&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>[src]
&mut self,
player_view: &G::PlayerView,
debug_interface: &PlayerDebugInterface<'_, G>
) -> Result<(), PlayerError>