public abstract bool IsReachedChargeArea(ARenderObject tower,ARenderObject phone);
public override bool IsReachedChargeArea(ARenderObject tower, ARenderObject phone) { Rect pRect = new Rect(phone.Left, phone.Top, phone.Width, phone.Height); Rect tRect = new Rect(tower.Left - tower.Width, tower.Top - tower.Height, 3 * tower.Width, 3 * tower.Height); return pRect.IntersectsWith(tRect); }