[−][src]Struct weasel::team::Team
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]
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,
<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,
<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,
<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,
<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,
<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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,