Beispiel #1
0
 internal bool IsHit(Figure figure)
 {
     foreach(var wall in wallList)
     {
         if(wall.IsHit(figure))
         {
             return true;
         }
     }
     return false;
 }
Beispiel #2
0
 internal bool IsHit(Figure figure)
 {
     foreach(var p in pList)
     {
         if(figure.IsHit(p))
         {
             return true;
         }
     }
     return false;
 }