From 9858b069ea4264840d98094e2e36ad2517f2215f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 20 Nov 2025 19:17:14 -0800 Subject: feat: Implement Assignment 3 functionality --- MorgSimulator/MovementStrategy/MovementStrategyOozes.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'MorgSimulator/MovementStrategy/MovementStrategyOozes.cs') diff --git a/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs b/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs index 217d175..dfc8423 100644 --- a/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs +++ b/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs @@ -1,12 +1,14 @@ +using MorgSimulator.Framework; + namespace MorgSimulator { public class MovementStrategyOozes : 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} Oozes from ({morg.Location.x},{morg.Location.y}) to ({newLocation.x},{newLocation.y})"); + System.Console.WriteLine($"Morg {entity.Id} Oozes from ({entity.Location.x},{entity.Location.y}) to ({newLocation.x},{newLocation.y})"); - morg.Location = newLocation; + entity.Location = newLocation; } } } -- cgit v1.2.3