Пример #1
0
 public abstract bool IsReachedChargeArea(ARenderObject tower,ARenderObject phone);
Пример #2
0
 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);
 }