예제 #1
0
        private Explosion Shoot()
        {
            var(xDeviation, zDeviation, distance) = _io.Read3Numbers(
                "Input angle deviation from X, angle deviation from Z, distance");
            _shotCount++;
            _io.WriteLine();

            return(_firingRange.Fire(Angle.InDegrees(xDeviation), Angle.InDegrees(zDeviation), distance));
        }
예제 #2
0
        private Explosion Shoot()
        {
            var input = Input.ReadNumbers("Input angle deviation from X, angle deviation from Z, distance", 3);

            _shotCount++;
            Console.WriteLine();

            return(_firingRange.Fire(Angle.InDegrees(input[0]), Angle.InDegrees(input[1]), input[2]));
        }