summaryrefslogtreecommitdiff
path: root/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MorgSimulator/MovementStrategy/MovementStrategyOozes.cs')
-rw-r--r--MorgSimulator/MovementStrategy/MovementStrategyOozes.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs b/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs
new file mode 100644
index 0000000..217d175
--- /dev/null
+++ b/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs
@@ -0,0 +1,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;
+ }
+ }
+}