protected void OnSetPrey(ControlEvents.SetPreyEventArgs e)
        {
            setPreyEventHandler eventHandler = RaiseSetPreyEvent;

            if (eventHandler != null)
            {
                eventHandler.Invoke(this, e);
            }
        }
 /// <summary>
 /// Is informed that another lifeform is considering it food.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void IsPreyEventHandler(object sender, ControlEvents.SetPreyEventArgs e)
 { //delegate. Take the ID of the predator and add it to the array.
     if (e.IDs.receiverID == ID)
     {
         string[] array = HuntedBy;
         helper.Add(ref array, e.IDs.senderID);
         HuntedBy = array;
     }
 }