Beispiel #1
0
        public Walls(int mapWeight, int mapHeight)
        {
            wallList = new List<Figure>();

              HorizontalLine gorLineTop = new HorizontalLine(0, mapWeight -2, 0, '+');
              HorizontalLine gorLineBottom = new HorizontalLine(0, mapWeight, mapHeight -1, '+');
              VerticalLine verLineLeft = new VerticalLine(0, 0, mapHeight - 1, '+');
              VerticalLine verLineRight = new VerticalLine(mapWeight - 2,0, mapHeight - 1, '+');

              wallList.Add(gorLineTop);
              wallList.Add(gorLineBottom);
              wallList.Add(verLineLeft);
              wallList.Add(verLineRight);
        }