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

Method ModifyResources

avida-core/source/cpu/cTestCPU.cc:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void cTestCPU::ModifyResources(cAvidaContext& ctx, const Apto::Array<double>& res_change)
137{
138 //We only let the testCPU modify the resources if we are using a DEPLETABLE option. @JEB
139 if (m_res_method >= RES_UPDATED_DEPLETABLE) m_resource_count.Modify(ctx, res_change);
140}
141
142
143// NOTE: This method assumes that the organism is a fresh creation.

Callers 3

UpdateResourcesMethod · 0.80
UpdateRandomResourcesMethod · 0.80
UpdateAVResourcesMethod · 0.80

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected