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