pub struct TacticalMatch { /* private fields */ }Implementations§
Source§impl TacticalMatch
impl TacticalMatch
pub fn new( config: Config, roster: Vec<PlayerSetup>, ) -> Result<TacticalMatch, RuleError>
pub fn phase(&self) -> Phase
pub fn remaining(&self) -> f32
pub fn round(&self) -> u32
pub fn score(&self) -> [u16; 2]
pub fn bomb(&self) -> Bomb
pub fn players(&self) -> &[Player]
pub fn player(&self, id: u16) -> Option<&Player>
pub fn interaction_progress(&self) -> Option<(u16, f32)>
pub fn pop_event(&mut self) -> Option<Event>
Sourcepub fn set_position(
&mut self,
id: u16,
position: [f32; 3],
) -> Result<(), RuleError>
pub fn set_position( &mut self, id: u16, position: [f32; 3], ) -> Result<(), RuleError>
Integrate movement on the authoritative host, then provide its accepted position. Moving >15 cm from interaction origin interrupts plant/defuse.
pub fn act(&mut self, id: u16, action: Action) -> Result<(), RuleError>
Auto Trait Implementations§
impl Freeze for TacticalMatch
impl RefUnwindSafe for TacticalMatch
impl Send for TacticalMatch
impl Sync for TacticalMatch
impl Unpin for TacticalMatch
impl UnwindSafe for TacticalMatch
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