示例#1
0
 internal bool isHit(Figure figure)
 {
     foreach(var point in points)
     {
         if (figure.isHit(point)) return true;
     }
     return false;
 }
示例#2
0
 internal bool isHit(Figure figure)
 {
     foreach (Point point in pList)
     {
         if (figure.isHit(point))
         {
             return(true);
         }
     }
     return(false);
 }
示例#3
0
 public bool isHit(Figure f)
 {
     foreach (Point p in pList)
     {
         if (f.isHit(p))
         {
             return(true);
         }
     }
     ;
     return(false);
 }