public Borders(int _Height, int _Width) { wallList = new List <Figure>(); topLine = new HorizontalLine(0, _Width - 2, 0, '+'); bottomLine = new HorizontalLine(0, _Width - 2, _Height - 1, '+'); leftBoarder = new VerticalLines(0, _Height - 1, 0, '+'); rightBoarder = new VerticalLines(0, _Height - 1, _Width - 2, '+'); wallList.Add(topLine); wallList.Add(bottomLine); wallList.Add(leftBoarder); wallList.Add(rightBoarder); }
public Walls(int mapWidth, int mapHeight) { wallList = new List <Figure>(); HorizontalLine upLine = new HorizontalLine(0, mapWidth - 2, 0, '*'); HorizontalLine downLine = new HorizontalLine(0, mapWidth - 2, mapHeight - 1, '_'); VerticalLines leftLine = new VerticalLines(0, mapHeight - 1, 0, '|'); VerticalLines rightLine = new VerticalLines(0, mapHeight - 1, mapWidth - 2, '|'); wallList.Add(upLine); wallList.Add(downLine); wallList.Add(leftLine); wallList.Add(rightLine); }