исправл
This commit is contained in:
commit
d6b298a36c
29
ProjectBulldozer/ProjectBulldozer/DirectionType1.cs
Normal file
29
ProjectBulldozer/ProjectBulldozer/DirectionType1.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectBulldozer;
|
||||
|
||||
public enum DirectionType1
|
||||
{
|
||||
/// <summary>
|
||||
/// Вверх
|
||||
/// </summary>
|
||||
Up = 1,
|
||||
/// <summary>
|
||||
/// Вниз
|
||||
/// </summary>
|
||||
Down = 2,
|
||||
/// <summary>
|
||||
/// Влево
|
||||
/// </summary>
|
||||
Left = 3,
|
||||
/// <summary>
|
||||
/// Вправо
|
||||
/// </summary>
|
||||
Right = 4
|
||||
|
||||
}
|
||||
//сделано
|
@ -73,19 +73,19 @@ namespace ProjectBulldozer
|
||||
{
|
||||
case "buttonUp":
|
||||
result =
|
||||
_drawningBulldozer.MoveTransport(DirectionType1.Up);
|
||||
_drawningBulldozer.MoveTransport(DirectionType.Up);
|
||||
break;
|
||||
case "buttonDown":
|
||||
result =
|
||||
_drawningBulldozer.MoveTransport(DirectionType1.Down);
|
||||
_drawningBulldozer.MoveTransport(DirectionType.Down);
|
||||
break;
|
||||
case "buttonLeft":
|
||||
result =
|
||||
_drawningBulldozer.MoveTransport(DirectionType1.Left);
|
||||
_drawningBulldozer.MoveTransport(DirectionType.Left);
|
||||
break;
|
||||
case "buttonRight":
|
||||
result =
|
||||
_drawningBulldozer.MoveTransport(DirectionType1.Right);
|
||||
_drawningBulldozer.MoveTransport(DirectionType.Right);
|
||||
break;
|
||||
}
|
||||
if (result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user