Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
Loading...
Searching...
No Matches
Fauna::World::SimDayOptions Struct Reference

Options passed to simulate_day() More...

#include <world.h>

Public Member Functions

 SimDayOptions ()
 Constructor. More...
 

Public Attributes

bool do_herbivores = true
 Whether to perform herbivore simulations. More...
 
bool reset_date = false
 Whether to reset the simulation so we start from the beginning. More...
 

Detailed Description

Options passed to simulate_day()

Constructor & Destructor Documentation

◆ SimDayOptions()

Fauna::World::SimDayOptions::SimDayOptions ( )
inline

Constructor.

Member Data Documentation

◆ do_herbivores

bool Fauna::World::SimDayOptions::do_herbivores = true

Whether to perform herbivore simulations.

If false, only the output data of the habitats are updated.

◆ reset_date

bool Fauna::World::SimDayOptions::reset_date = false

Whether to reset the simulation so we start from the beginning.

Enable this if you want to move on to simulate another area for instance. Then you restart from the beginning of your simulation time and set the date accordingly. (simulate_day() will not throw an error about non-consecutive dates.)

Note
When you reset the date, it is advisable to clear the simulation units (SimulationUnit) in the World object. Do that by marking all habitats as “dead” (Habitat::is_dead()). Simulation units with dead habitats will automatically be cleared.

The documentation for this struct was generated from the following file: