示例#1
0
        public void LandRover(RoverPosition landingCoordinates)
        {
            if (!CoordinatesAreWithinLimits(landingCoordinates))
                throw new ArgumentOutOfRangeException("landingCoordinates");

            Rover newRover = new Rover(this, landingCoordinates);
            Rovers.Add(newRover);
        }
示例#2
0
 private void InitializeRoverBottomLeft()
 {
     LandingArea _plateau = new LandingArea(10, 10);
     RoverPosition landingCoordinates = new RoverPosition(1, 1, RoverPosition.Direction.N);
     _plateau.LandRover(landingCoordinates);
     _testRover = _plateau.Rovers.FirstOrDefault();
 }