summaryrefslogtreecommitdiff
path: root/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs
blob: efdd3ef1eeef8fe84e15809e981b4ff5c15dcff9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
namespace MorgSimulator
{
    public class MovementStrategyPaddles : IMovementStrategy
    {
        public void Move(Morg morg, (int x, int y) newLocation)
        {
            System.Console.WriteLine($"Morg {morg.Id} Paddles from ({morg.Location.x},{morg.Location.y}) to ({newLocation.x},{newLocation.y})");

            morg.Location = newLocation;
        }
    }
}