示例#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;
 }