summaryrefslogtreecommitdiff
path: root/MorgSimulator/MovementStrategy/MovementStrategyOozes.cs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-11-20 19:17:14 -0800
committerFuwn <[email protected]>2025-11-20 19:17:14 -0800
commit9858b069ea4264840d98094e2e36ad2517f2215f (patch)
tree367ac8bcab6107ef8dfa4be524f834a5336d9bc3 /MorgSimulator/MovementStrategy/MovementStrategyOozes.cs
parentfeat: Add Assignment 2 diagrams (diff)
downloadcst276-9858b069ea4264840d98094e2e36ad2517f2215f.tar.xz
cst276-9858b069ea4264840d98094e2e36ad2517f2215f.zip
feat: Implement Assignment 3 functionality
Diffstat (limited to 'MorgSimulator/MovementStrategy/MovementStrategyOozes.cs')
-rw-r--r--MorgSimulator/MovementStrategy/MovementStrategyOozes.cs8
1 files changed, 5 insertions, 3 deletions
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;
}
}
}