Exemple #1
0
        protected override void MoveTo(Ocean ocean, Point location)
        {
            var fishAtLocation = ocean.GetFishAt(location.X, location.Y);

            if (fishAtLocation != null)
            {
                ocean.Remove(fishAtLocation);
            }

            ocean.MoveTo(this, location);
        }
Exemple #2
0
 protected override void MoveTo(Ocean ocean, Point location)
 {
     ocean.MoveTo(this, location);
 }