public static bool CheckForIntersect(CircleObject firstCircle, CircleObject secondCircle) //Ricochets first circle { double distanceBetweenRadiuses = VectorLength(secondCircle.GetCenter(), firstCircle.GetCenter());; if (distanceBetweenRadiuses <= firstCircle.GetRadius() + secondCircle.GetRadius() / 2) { return(true); } return(false); }
public virtual void Eat(Player player, CircleObject whatToEat) { player.SetRadius(player.GetRadius() + whatToEat.GetRadius() - 4); }
public override void Eat(Player player, CircleObject whatToEat) { player.SetRadius(player.GetRadius() + whatToEat.GetRadius() - 3f); }