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

Method Process

avida-core/source/actions/EnvironmentActions.cc:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 static const cString GetDescription() { return "Arguments: none"; }
193
194 void Process(cAvidaContext& ctx)
195 {
196 cResourceLib & res_lib = m_world->GetEnvironment().GetResourceLib();
197 for (int i=0; i < res_lib.GetSize(); i++) {
198 cResource* res = res_lib.GetResource(i);
199 m_world->GetPopulation().SetResource(ctx, res->GetID(), 0.0);
200 }
201 }
202};
203
204/* Change the amount of a particular resource in a particular cells */

Callers

nothing calls this directly

Calls 4

GetSizeMethod · 0.45
GetResourceMethod · 0.45
SetResourceMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected