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

            morg.Location = newLocation;
        }
    }
}