Example #1
0
 public override void Move(string command)
 {
     if (command == "T")
     {
         _orientation = MoveList.TurnClockwise(_orientation);
     }
 }
Example #2
0
 public override void Move(string command)
 {
     if (command == "T")
     {
         _orientation = MoveList.TurnClockwise(_orientation);
     }
     else if (command == "S")
     {
         _ammunition = MoveList.Shot(_ammunition);
     }
 }
Example #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);
     }
 }