public bool IfHitWalls(Figure figure) { foreach (var item in walls) { if (figure.IfHit(item)) return true; } return false; }
public bool IfHit(Figure figure) { foreach (var item in pList) { if (figure.IfHit(item)) return true; } return false; }