summaryrefslogtreecommitdiff
path: root/MorgSimulator/FeedingStrategy/FeedingStrategyEnvelops.cs
blob: c5b96a3fb1dcd159072a0a72c8d1db565c378c10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using MorgSimulator.Framework;

namespace MorgSimulator
{
    public class FeedingStrategyEnvelops : IFeedingStrategy
    {
        public void Feed(Entity predator, Entity prey)
        {
            System.Console.WriteLine($"Morg {predator.Id} Envelops Morg {prey.Id} at ({prey.Location.x},{prey.Location.y})");

            prey.IsAlive = false;
        }
    }
}