PlayerConfig

Trait PlayerConfig 

Source
pub trait PlayerConfig<G: Game> {
    // Required methods
    fn name(&self) -> &str;
    fn ui<'a>(&'a mut self) -> Box<dyn Widget + 'a>;
    fn ready(&mut self) -> bool;
    fn get(&mut self) -> Box<dyn Player<G>>;
    fn to_options(&self) -> G::PlayerOptions;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn ui<'a>(&'a mut self) -> Box<dyn Widget + 'a>

Source

fn ready(&mut self) -> bool

Source

fn get(&mut self) -> Box<dyn Player<G>>

Source

fn to_options(&self) -> G::PlayerOptions

Implementors§