From a9f3a7a521e5321196e77710a7d290d648e224da Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Mon, 3 Oct 2022 09:12:52 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=82=D0=BE=D1=80=D0=B0=D1=8F=20=D0=BB?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Catamaran/AbstractMap.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Catamaran/AbstractMap.cs b/Catamaran/AbstractMap.cs index 825cebc..ef55784 100644 --- a/Catamaran/AbstractMap.cs +++ b/Catamaran/AbstractMap.cs @@ -102,25 +102,10 @@ namespace Catamaran { _drawingObject.MoveObject(direction); } - else _drawingObject.MoveObject(OppositDirection(direction)); return DrawMapWithObject(); } - private static Direction OppositDirection(Direction direction) - { - switch (direction) - { - case Direction.Up: - return Direction.Down; - case Direction.Down: - return Direction.Up; - case Direction.Left: - return Direction.Right; - case Direction.Right: - return Direction.Left; - } - return Direction.None; - } + private bool SetObjectOnMap() { if (_drawingObject == null || _map == null)