Esempio n. 1
0
 public override void Move(string command)
 {
     if (command == "T")
     {
         _orientation = MoveList.TurnClockwise(_orientation);
     }
 }
Esempio n. 2
0
 public override void Move(string command)
 {
     if (command == "T")
     {
         _orientation = MoveList.TurnClockwise(_orientation);
     }
     else if (command == "S")
     {
         _ammunition = MoveList.Shot(_ammunition);
     }
 }
Esempio n. 3
0
 public override void Move(string command)
 {
     if (command == "F")
     {
         var position = MoveList.Forwards(_orientation, _position, _field);
         _position[0] = position._positionX;
         _position[1] = position._positionY;
     }
     else if (command == "T")
     {
         _orientation = MoveList.TurnClockwise(_orientation);
     }
 }