Update the organism's metabolic rate
| 5861 | |
| 5862 | //Update the organism's metabolic rate |
| 5863 | bool cHardwareCPU::Inst_UpdateMetabolicRate(cAvidaContext& ctx) |
| 5864 | { |
| 5865 | cPhenotype& phenotype = m_organism->GetPhenotype(); |
| 5866 | double newmerit = phenotype.ConvertEnergyToMerit(phenotype.GetStoredEnergy() * phenotype.GetEnergyUsageRatio()); |
| 5867 | m_organism->UpdateMerit(ctx, newmerit); |
| 5868 | |
| 5869 | return true; |
| 5870 | } //End Inst_UpdateMetabolocRate() |
| 5871 | |
| 5872 | |
| 5873 | //Donate a fraction of organism's energy to faced organism. |
nothing calls this directly
no test coverage detected