pub struct Round<TRng> { /* private fields */ }
Implementations§
Source§impl<TRng> Round<TRng>where
TRng: Rng,
impl<TRng> Round<TRng>where
TRng: Rng,
pub fn new( game_players: &GamePlayers, round_or_rng: FinishedRoundOrRng<TRng>, ) -> Self
pub fn number(&self) -> RoundNumber
pub fn max_health(&self) -> i32
pub fn living_players(&self) -> impl Iterator<Item = &Seat>
pub fn next_player(&self) -> PlayerNumber
pub fn seats(&self) -> &Vec<Seat>
pub fn shells(&self) -> &VecDeque<Shell>
pub fn game_modifiers(&self) -> &GameModifiers
pub fn first_dead_player(&self) -> Option<PlayerNumber>
pub fn with_turn<F>(self, func: F) -> Option<TurnSummary<TRng>>
Trait Implementations§
Auto Trait Implementations§
impl<TRng> Freeze for Round<TRng>where
TRng: Freeze,
impl<TRng> RefUnwindSafe for Round<TRng>where
TRng: RefUnwindSafe,
impl<TRng> Send for Round<TRng>where
TRng: Send,
impl<TRng> Sync for Round<TRng>where
TRng: Sync,
impl<TRng> Unpin for Round<TRng>where
TRng: Unpin,
impl<TRng> UnwindSafe for Round<TRng>where
TRng: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more