diff options
Diffstat (limited to 'MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs')
| -rw-r--r-- | MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs b/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs new file mode 100644 index 0000000..efdd3ef --- /dev/null +++ b/MorgSimulator/MovementStrategy/MovementStrategyPaddles.cs @@ -0,0 +1,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; + } + } +} |