public bool IsColliding(Rectangle playground) { if (BodyList.Any(item => HeadElement.CheckCollision(item))) { return(true); } bool isColliding = !playground.Contains(HeadElement.Location); return(isColliding); }
public bool CanEat(Meal meal) { return(HeadElement.CheckCollision(meal)); }