blob: 9e0f9a089d00f85b0c10eba6b580a517b180ccd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
namespace MorgSimulator
{
public class FeedingStrategyAbsorbs : IFeedingStrategy
{
public void Feed(Morg predator, Morg prey)
{
System.Console.WriteLine($"Morg {predator.Id} Absorbs Morg {prey.Id} at ({prey.Location.x},{prey.Location.y})");
prey.IsAlive = false;
}
}
}
|