예제 #1
0
파일: portal.cs 프로젝트: Ihor01/snake
 public new point IsHit(point head)
 {
     if (head.IsHit(pList.First()))
         return pList.First();
     if (head.IsHit(pList.Last()))
         return pList.Last();
     return null;
 }
예제 #2
0
파일: figure.cs 프로젝트: Ihor01/snake
 public bool IsHit(point p)
 {
     foreach (var point in pList)
     {
         if (p.IsHit(point))
             return true;
     }
     return false;
 }