[][src]Trait ggpf::policies::DynMultiplayerPolicyBuilder

pub trait DynMultiplayerPolicyBuilder<'a, T: Game>: Display {
    fn create(
        &self,
        color: T::Player
    ) -> Box<dyn MultiplayerPolicy<T> + Send + Sync + 'a>; }

A dynamic policy builder.

Required methods

fn create(
    &self,
    color: T::Player
) -> Box<dyn MultiplayerPolicy<T> + Send + Sync + 'a>

Initializes a new policy instance for player color, but dynamically.

Loading content...

Implementors

impl<'a, G, PB> DynMultiplayerPolicyBuilder<'a, G> for PB where
    G: Game,
    PB: MultiplayerPolicyBuilder<G>,
    PB::P: 'a + Send + Sync
[src]

Converts a static policy builder to a dynamic one.

Loading content...