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