[−][src]Trait oasis_game_core::UserFlow
Required methods
fn initial_state(&self, seed: Option<u128>) -> T
fn make_move(
&self,
state: &mut UserState<T>,
game_move: &Move
) -> Result<(), Box<dyn Error>>
&self,
state: &mut UserState<T>,
game_move: &Move
) -> Result<(), Box<dyn Error>>
Provided methods
fn list_moves(&self) -> Vec<&'static str>
fn end_turn_if(&self, _: &UserState<T>) -> bool
fn end_game_if(&self, _: &UserState<T>) -> Option<(Option<Score>, Value)>
fn on_turn_begin(&self, state: &mut UserState<T>) -> Result<(), Box<dyn Error>>
fn on_turn_end(&self, state: &mut UserState<T>) -> Result<(), Box<dyn Error>>
fn on_move(
&self,
state: &mut UserState<T>,
_: &Move
) -> Result<(), Box<dyn Error>>
&self,
state: &mut UserState<T>,
_: &Move
) -> Result<(), Box<dyn Error>>