pub struct Turn<'turn, TRng> { /* private fields */ }
Implementations§
Source§impl<'turn, TRng> Turn<'turn, TRng>where
TRng: Rng,
impl<'turn, TRng> Turn<'turn, TRng>where
TRng: Rng,
pub fn new( occupied_seat: OccupiedSeat<'turn>, other_seats: Vec<SeatView>, shells: &'turn mut VecDeque<Shell>, rng: &'turn mut TRng, modifiers: GameModifiers, ) -> Turn<'turn, TRng>
pub fn shell_count(&self) -> usize
pub fn items(&self) -> &Vec<Item>
pub fn other_seats(&self) -> &Vec<SeatView>
pub fn player(&self) -> &RoundPlayer
pub fn modifiers(&self) -> &GameModifiers
pub fn shoot(self, target: PlayerNumber) -> TakenAction<'turn, TRng>
pub fn use_unary_item(self, unary_item: UnaryItem) -> TakenAction<'turn, TRng>where
TRng: Rng,
pub fn use_adreneline(
self,
target_player: PlayerNumber,
target_item: UnaryItem,
) -> TakenAction<'turn, TRng>where
TRng: Rng,
pub fn use_jammer(self, target_player: PlayerNumber) -> TakenAction<'turn, TRng>
pub fn use_adreneline_then_jammer( self, theive_from: PlayerNumber, jam_target: PlayerNumber, ) -> TakenAction<'turn, TRng>
Trait Implementations§
Auto Trait Implementations§
impl<'turn, TRng> Freeze for Turn<'turn, TRng>
impl<'turn, TRng> RefUnwindSafe for Turn<'turn, TRng>where
TRng: RefUnwindSafe,
impl<'turn, TRng> Send for Turn<'turn, TRng>where
TRng: Send,
impl<'turn, TRng> Sync for Turn<'turn, TRng>where
TRng: Sync,
impl<'turn, TRng> Unpin for Turn<'turn, TRng>
impl<'turn, TRng> !UnwindSafe for Turn<'turn, TRng>
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