! Detect if the cell data in which this organism lives has changed since the last time that this organism has collected cell data. Note that this process DOES NOT take into account organism movement, and it only works with explicit collection of cell data. */
| 9383 | collection of cell data. |
| 9384 | */ |
| 9385 | bool cHardwareCPU::Inst_IfCellDataChanged(cAvidaContext&) |
| 9386 | { |
| 9387 | assert(m_organism != 0); |
| 9388 | // If we haven't collected cell data yet, or it's the same as the current cell data, advance |
| 9389 | // the IP: |
| 9390 | if (!m_last_cell_data.first || (m_last_cell_data.second == m_organism->GetCellData())) { |
| 9391 | getIP().Advance(); |
| 9392 | } |
| 9393 | |
| 9394 | return true; |
| 9395 | } |
| 9396 | |
| 9397 | |
| 9398 | bool cHardwareCPU::Inst_KillCellEvent(cAvidaContext&) |
nothing calls this directly
no test coverage detected