MCPcopy Create free account
hub / github.com/devosoft/avida / AddCellResource

Method AddCellResource

avida-core/source/main/cResource.h:329–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327 void SetPredatoryResource(double _odds, int _juvsper, double _prob) { m_predator = true; m_predator_odds = _odds; m_guard_juvs_per = _juvsper; m_prob_detect = _prob; }
328
329 void AddCellResource(cCellResource new_cell) { cell_list.Push(new_cell); }
330 cCellResource *GetCellResourcePtr(int _id);
331 void UpdateCellResource(cCellResource *_CellResoucePtr, double _initial,
332 double _inflow, double _outflow);

Callers 1

LoadCellMethod · 0.80

Calls 1

PushMethod · 0.45

Tested by

no test coverage detected