Returns all output avatars (organisms) contained in the cell
| 439 | |
| 440 | // Returns all output avatars (organisms) contained in the cell |
| 441 | Apto::Array<cOrganism*> cPopulationCell::GetCellOutputAVs() |
| 442 | { |
| 443 | assert(HasOutputAV()); |
| 444 | Apto::Array<cOrganism*> avatar_outputs; |
| 445 | avatar_outputs.Resize(GetNumAVOutputs()); |
| 446 | for (int i = 0; i < GetNumAVOutputs(); i++) { |
| 447 | avatar_outputs[i] = m_av_prey[i]; |
| 448 | } |
| 449 | return avatar_outputs; |
| 450 | } |
| 451 | |
| 452 | // Returns all avatars (organisms) contained in the cell |
| 453 | Apto::Array<cOrganism*> cPopulationCell::GetCellAVs() |
no test coverage detected