// Search predicates private static bool isInertEnemy(Enemy e) { return e.inert; }
// Check functions public bool enemyOverlap(Vector2 target, Enemy identity) { bool check = false; foreach (Enemy e in enemyList) { if ((e != identity) && (isCircle(target, e.location))) { check = true; break; } } return check; }