Beispiel #1
0
 public int DownShift(Fighter jumper)
 {
     jumper.Box = new Rectangle(jumper.Box.X, jumper.Box.Y + 1, jumper.Box.Width, jumper.Box.Height);
     return(jumper.Box.Y);
 }
Beispiel #2
0
        public double DistanceTo(Fighter f)
        {
            double step = Math.Pow(f.Box.X - box.X, 2) + Math.Pow(f.Box.Y - box.Y, 2);

            return(Math.Sqrt(step));
        }