[][src]Trait ggpf::game::GameBuilder

pub trait GameBuilder: Sync + Send + Clone {
    type G: Game;
#[must_use]    fn create<'life0, 'async_trait>(
        &'life0 self,
        starting: <Self::G as Game>::Player
    ) -> Pin<Box<dyn Future<Output = Self::G> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Game builders.

Associated Types

type G: Game

The built game.

Loading content...

Required methods

#[must_use]fn create<'life0, 'async_trait>(
    &'life0 self,
    starting: <Self::G as Game>::Player
) -> Pin<Box<dyn Future<Output = Self::G> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Create a new game starting for player starting.

Loading content...

Implementors

impl GameBuilder for BreakthroughBuilder[src]

type G = Breakthrough

impl<GB> GameBuilder for WithHistoryGB<GB> where
    GB::G: Clone + Sync + Send + 'static,
    GB: GameBuilder + Send + Sync
[src]

type G = WithHistory<GB::G>

impl<GB> GameBuilder for GB where
    GB: SingleplayerGameBuilder
[src]

Single-player game builder is an instance of GameBuilder

type G = GB::G

Loading content...