Struct simulation::SimulationRunner
[−]
[src]
pub struct SimulationRunner { pub uavs: Vec<UavRunner>, // some fields omitted }
A structure for running a configured simulation
Fields
uavs: Vec<UavRunner>
Methods
impl SimulationRunner
[src]
fn new(config: &SimulationConfig) -> SimulationRunner
Create a new simulation runner using the provided config and list of animals
fn snapshot(&self) -> SimulationFrame
Get a snapshot of the current simulation frame
fn config_compatible(&self, config: &SimulationConfig) -> bool
Checks if the new config is compatible with the old config.
fn step(&mut self, dt: f32) -> SimulationFrame
Performs a single step in the simulation
fn update_config(&mut self, config: &SimulationConfig)
Updates the config of all subcomponents (if compabible)