| 6911 | } |
| 6912 | |
| 6913 | void cHardwareExperimental::MakePred(cAvidaContext& ctx) |
| 6914 | { |
| 6915 | if (m_organism->IsPreyFT()) { |
| 6916 | if (m_world->GetConfig().MAX_PRED.Get() && m_world->GetStats().GetNumTotalPredCreatures() >= m_world->GetConfig().MAX_PRED.Get()) m_organism->GetOrgInterface().KillRandPred(ctx, m_organism); |
| 6917 | // switching between predator and prey means having to switch avatar list...don't run this for orgs with AVCell == -1 (avatars off or test cpu) |
| 6918 | if (m_use_avatar && m_organism->GetOrgInterface().GetAVCellID() != -1) { |
| 6919 | m_organism->GetOrgInterface().SwitchPredPrey(ctx); |
| 6920 | m_organism->SetPredFT(ctx); |
| 6921 | } |
| 6922 | else m_organism->SetPredFT(ctx); |
| 6923 | } |
| 6924 | } |
| 6925 | |
| 6926 | void cHardwareExperimental::MakeTopPred(cAvidaContext& ctx) |
| 6927 | { |
nothing calls this directly
no test coverage detected