[][src]Struct weasel::creature::CreateCreatureTrigger

pub struct CreateCreatureTrigger<'a, R, P> where
    R: BattleRules + 'static,
    P: EventProcessor<R>, 
{ /* fields omitted */ }

Trigger to build and fire a CreateCreature event.

Implementations

impl<'a, R, P> CreateCreatureTrigger<'a, R, P> where
    R: BattleRules + 'static,
    P: EventProcessor<R>, 
[src]

pub fn statistics_seed(&'a mut self, seed: StatisticsSeed<R>) -> &'a mut Self[src]

Adds a seed to drive the generation of this creature's statistics.

pub fn abilities_seed(&'a mut self, seed: AbilitiesSeed<R>) -> &'a mut Self[src]

Adds a seed to drive the generation of this creature's abilities.

Trait Implementations

impl<'a, R, P> EventTrigger<'a, R, P> for CreateCreatureTrigger<'a, R, P> where
    R: BattleRules + 'static,
    P: EventProcessor<R>, 
[src]

fn event(&self) -> Box<dyn Event<R> + Send>[src]

Returns a CreateCreature event.

Auto Trait Implementations

impl<'a, R, P> RefUnwindSafe for CreateCreatureTrigger<'a, R, P> where
    P: RefUnwindSafe,
    <<R as BattleRules>::AR as ActorRules<R>>::AbilitiesSeed: RefUnwindSafe,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: RefUnwindSafe,
    <<R as BattleRules>::SR as SpaceRules<R>>::Position: RefUnwindSafe,
    <<R as BattleRules>::CR as CharacterRules<R>>::StatisticsSeed: RefUnwindSafe

impl<'a, R, P> Send for CreateCreatureTrigger<'a, R, P> where
    P: Send,
    <<R as BattleRules>::AR as ActorRules<R>>::AbilitiesSeed: Send,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Send,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Send,
    <<R as BattleRules>::SR as SpaceRules<R>>::Position: Send,
    <<R as BattleRules>::CR as CharacterRules<R>>::StatisticsSeed: Send

impl<'a, R, P> Sync for CreateCreatureTrigger<'a, R, P> where
    P: Sync,
    <<R as BattleRules>::AR as ActorRules<R>>::AbilitiesSeed: Sync,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Sync,
    <<R as BattleRules>::SR as SpaceRules<R>>::Position: Sync,
    <<R as BattleRules>::CR as CharacterRules<R>>::StatisticsSeed: Sync

impl<'a, R, P> Unpin for CreateCreatureTrigger<'a, R, P> where
    <<R as BattleRules>::AR as ActorRules<R>>::AbilitiesSeed: Unpin,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Unpin,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Unpin,
    <<R as BattleRules>::SR as SpaceRules<R>>::Position: Unpin,
    <<R as BattleRules>::CR as CharacterRules<R>>::StatisticsSeed: Unpin

impl<'a, R, P> !UnwindSafe for CreateCreatureTrigger<'a, R, P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,