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

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

            entity.Location = newLocation;
        }
    }
}