[][src]Struct weasel::team::Team

pub struct Team<R: BattleRules> { /* fields omitted */ }

A team is an alliance of entities.

A team represents the unit of control of a player. Teams must achieve their objectives in order to win the battle.

Implementations

impl<R: BattleRules> Team<R>[src]

pub fn creatures(&self) -> impl Iterator<Item = &CreatureId<R>>[src]

Returns an iterator over creatures.

pub fn conclusion(&self) -> Option<Conclusion>[src]

Returns the conclusion reached by this team, if any.

pub fn objectives(&self) -> &Objectives<R>[src]

Returns the team's objectives.

Trait Implementations

impl<R: BattleRules> Id for Team<R>[src]

type Id = TeamId<R>

Type of the id value.

Auto Trait Implementations

impl<R> RefUnwindSafe for Team<R> where
    <R as BattleRules>::CR: CharacterRules<R>,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: RefUnwindSafe

impl<R> Send for Team<R> where
    <R as BattleRules>::CR: CharacterRules<R>,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Send,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Send,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: Send

impl<R> Sync for Team<R> where
    <R as BattleRules>::CR: CharacterRules<R>,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: Sync

impl<R> Unpin for Team<R> where
    <R as BattleRules>::CR: CharacterRules<R>,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Unpin,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Unpin,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: Unpin

impl<R> UnwindSafe for Team<R> where
    <R as BattleRules>::CR: CharacterRules<R>,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: UnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: UnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: UnwindSafe

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>,