summaryrefslogtreecommitdiff
path: root/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs
blob: dfc842313acaf3388ce1bbd131496bc64df2550e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using MorgSimulator.Framework;

namespace MorgSimulator
{
    public class MovementStrategyOozes : IMovementStrategy
    {
        public void Move(Entity entity, (int x, int y) newLocation)
        {
            System.Console.WriteLine($"Morg {entity.Id} Oozes from ({entity.Location.x},{entity.Location.y}) to ({newLocation.x},{newLocation.y})");

            entity.Location = newLocation;
        }
    }
}