Cell State struct.
More...
#include <PredatorPrey.hh>
◆ State()
Construct a cell state with the use of a RNG.
35 :
39 {
40 std::uniform_real_distribution<double>
dist(0., 1.);
41
42
45
46
47
51 cfg["prey"]);
52 }
53
54
58 cfg["predator"]);
59 }
60 }
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213
double resources
The internal resources reservoir.
Definition species.hh:16
bool on_cell
Whether the species is on the cell.
Definition species.hh:13
bool moved_predator
Flag to indicate if the predator on this cell has already moved
Definition PredatorPrey.hh:30
SpeciesState prey
The state a prey on this cell has.
Definition PredatorPrey.hh:27
SpeciesState predator
The state a predator on this cell has.
Definition PredatorPrey.hh:24
◆ moved_predator
bool Utopia::Models::PredatorPrey::State::moved_predator |
Flag to indicate if the predator on this cell has already moved
◆ predator
The state a predator on this cell has.
◆ prey
The state a prey on this cell has.
The documentation for this struct was generated from the following file: