コード例 #1
0
 /// <summary>
 /// Initializes a new instance for the RoverPosition
 /// </summary>
 /// <param name="coordinate">Sets the Rover's position</param>
 /// <param name="direction">Sets the Rover's direction</param>
 public RoverPosition(Coordinate coordinate, RoverDirectionEnum direction)
 {
     this.Coordinate = coordinate;
     this.Direction  = direction;
 }
コード例 #2
0
 /// <summary>
 /// As default, RoverPosition's coordinate is (0,0) and direction is North
 /// </summary>
 public RoverPosition()
 {
     this.Coordinate = new Coordinate(0, 0);
     this.Direction  = RoverDirectionEnum.North;
 }