/// <summary>
 /// defines if one unit is targeted to another
 /// </summary>
 /// <param name="Object">unit that is checking to be targeting</param>
 /// <param name="Subject">unit that is checking to be targeted</param>
 /// <returns>true if Object is targeted to Subject</returns>
 public static bool TargetedAt(IUnit Object, IUnit Subject)
 {
     Line shotLine = new Line(Object.Position, Object.Position + Object.Forward * Object.ShootingRadius);
     return Subject.GetRectangle().IntersectsLine(shotLine.pt1, shotLine.pt2);
 }