internal bool IsHit(figure figure) { foreach (var p in pList) { if (figure.IsHit(p)) { return(true); } } return(false); }
internal bool IsHit(figure figure) { foreach (var wall in wallList) { if (wall.IsHit(figure)) { return(true); } } return(false); }