/// <summary> /// Проверяет имеется ли передаваемый тип элемента в соответствующих координатах. /// </summary> public bool HasElementAt(BoardPoint point, BoardElement element) { if (point.IsOutOfBoard(Size)) { return(false); } return(GetElementAt(point) == element); }
public BoardElement GetElementAtOrWall(BoardPoint point) { if (point.IsOutOfBoard(Size)) { return(BoardElement.Wall); } return((BoardElement)BoardString[GetShiftByPoint(point)]); }