diff options
Diffstat (limited to 'MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs')
| -rw-r--r-- | MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs b/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs index efdd3ef..ddbfe8c 100644 --- a/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs +++ b/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs @@ -1,12 +1,14 @@ +using MorgSimulator.Framework; + namespace MorgSimulator { public class MovementStrategyPaddles : IMovementStrategy { - public void Move(Morg morg, (int x, int y) newLocation) + public void Move(Entity entity, (int x, int y) newLocation) { - System.Console.WriteLine($"Morg {morg.Id} Paddles from ({morg.Location.x},{morg.Location.y}) to ({newLocation.x},{newLocation.y})"); + System.Console.WriteLine($"Morg {entity.Id} Paddles from ({entity.Location.x},{entity.Location.y}) to ({newLocation.x},{newLocation.y})"); - morg.Location = newLocation; + entity.Location = newLocation; } } } |