[][src]Trait oasis_game_core::InnerStore

pub trait InnerStore<S: Default, T> {
    fn new(
        game: Game<T>,
        player_id: u16,
        players: Vec<u16>,
        multiplayer: bool,
        server: bool,
        initialize: bool
    ) -> Self;
fn dispatch(&mut self, action: Action) -> Result<(), GameError>;
fn peek(&self) -> &UserState<S>;
fn reset(&mut self, state: UserState<S>);
fn forfeit(&mut self, _: GameError);
fn get_move_names(&self) -> Vec<&'static str>;
fn get_player_id(&self) -> u16;
fn get_active_players(&self) -> Vec<u16>;
fn is_game_over(&self) -> bool; }

Required methods

fn new(
    game: Game<T>,
    player_id: u16,
    players: Vec<u16>,
    multiplayer: bool,
    server: bool,
    initialize: bool
) -> Self

fn dispatch(&mut self, action: Action) -> Result<(), GameError>

fn peek(&self) -> &UserState<S>

fn reset(&mut self, state: UserState<S>)

fn forfeit(&mut self, _: GameError)

fn get_move_names(&self) -> Vec<&'static str>

fn get_player_id(&self) -> u16

fn get_active_players(&self) -> Vec<u16>

fn is_game_over(&self) -> bool

Loading content...

Implementors

impl<S: Debug + Clone + Serialize + DeserializeOwned + Default, T: UserFlow<S>> InnerStore<S, T> for StoreImpl<S, T>[src]

Loading content...