| 6964 | } |
| 6965 | |
| 6966 | bool cHardwareExperimental::TestAttackPred(cAvidaContext& ctx) |
| 6967 | { |
| 6968 | if (m_use_avatar && m_use_avatar != 2) return false; |
| 6969 | |
| 6970 | if (m_world->GetConfig().PRED_PREY_SWITCH.Get() < 0) return false; |
| 6971 | |
| 6972 | if (!m_use_avatar && !m_organism->IsNeighborCellOccupied()) return false; |
| 6973 | else if (m_use_avatar == 2 && !m_organism->GetOrgInterface().FacedHasPredAV()) return false; |
| 6974 | |
| 6975 | return true; |
| 6976 | } |
| 6977 | |
| 6978 | cOrganism* cHardwareExperimental::GetPreyTarget(cAvidaContext& ctx) |
| 6979 | { |
nothing calls this directly
no test coverage detected