private void Spin(Char step) { int NumDirection = (int)Direction; if (step == 'L') { NumDirection--; } else { NumDirection++; } if (NumDirection == -1) { NumDirection = 3; } if (NumDirection == 4) { NumDirection = 0; } Direction = (General.Directions)NumDirection; }
public Rovers(int X, int Y, General.Directions directions) { this.X = X; this.Y = Y; this.Direction = directions; }