pub struct Simulator { /* private fields */ }
Implementations§
source§impl Simulator
impl Simulator
pub fn new() -> Simulator
pub fn add_agent(&mut self, agent: Agent, agent_parameters: AgentParameters)
pub fn add_obstacle(&mut self, obstacle: Obstacle)
pub fn remove_agent(&mut self, agent_index: usize)
pub fn remove_obstacle(&mut self, obstacle_index: usize)
pub fn get_agent(&self, agent_index: usize) -> &Agent
pub fn get_agent_mut(&mut self, agent_index: usize) -> &mut Agent
pub fn get_agent_count(&self) -> usize
pub fn get_obstacle_count(&self) -> usize
pub fn get_agent_parameters(&self, agent_index: usize) -> &AgentParameters
pub fn get_agent_parameters_mut( &mut self, agent_index: usize ) -> &mut AgentParameters
pub fn step(&mut self, time_step: f32)
Auto Trait Implementations§
impl RefUnwindSafe for Simulator
impl Send for Simulator
impl Sync for Simulator
impl Unpin for Simulator
impl UnwindSafe for Simulator
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