[][src]Trait rust_warrior::player::Player

pub trait Player: Send + Sync {
    fn play_turn(&self, warrior: &mut Warrior);
}

As a player of rust-warrior, you will create an implementation of this trait and implement the play_turn method, which will be called repeatedly in the main game loop.

Required methods

fn play_turn(&self, warrior: &mut Warrior)

Loading content...

Implementors

Loading content...