Exemplo n.º 1
0
        /// <summary>
        /// Constructor used when landing the rover.
        /// </summary>
        /// <param name="x">The x coordinate of the landing site.</param>
        /// <param name="y">The y coordinate of the landing site.</param>
        /// <param name="orientation">The rovers starting orientation.</param>
        /// <param name="board">The plateau the rover will land on.</param>
        public MarsRover(int x, int y, Orientation orientation, Board.Board board)
        {
            _board      = board;
            _boardPeice = _board.Place(x, y);
            Orientation = orientation;

            AssertDrivable();
        }