Example #1
0
        public Walls(int mapWidth, int mapHeight)
        {
            wallList = new List <Figure>();
            HorizontalLine top    = new HorizontalLine(0, 80, 0, '#');
            VerticalLine   left   = new VerticalLine(0, 25, 0, '#');
            HorizontalLine bottom = new HorizontalLine(0, 80, 25, '$');
            VerticalLine   right  = new VerticalLine(0, 25, 80, '$');

            wallList.Add(top);
            wallList.Add(left);
            wallList.Add(bottom);
            wallList.Add(right);
        }
Example #2
0
        public Walls(int mapWidth, int mapHeight)
        {
            wallList = new List <Figure>();
            Horizon      top    = new Horizon(0, 80, 0, '#');
            VerticalLine left   = new VerticalLine(0, 25, 0, '#');
            Horizon      bottom = new Horizon(0, 80, 25, '$');
            VerticalLine right  = new VerticalLine(0, 25, 80, '$');

            VerticalLine obstacle = new VerticalLine(10, 20, 50, '%');

            wallList.Add(top);
            wallList.Add(left);
            wallList.Add(bottom);
            wallList.Add(right);
            wallList.Add(obstacle);
        }
Example #3
0
        public Walls(int MapWidth, int MapHeight)
        {
            wallList = new List <Figure>();
            HorizontalLine top    = new HorizontalLine(0, 80, 0, '#');
            VerticalLine   Left   = new VerticalLine(0, 25, 0, '#');
            VerticalLine   Right  = new VerticalLine(0, 25, 80, '#');
            HorizontalLine Bottom = new HorizontalLine(0, 80, 25, '#');

            VerticalLine   obstacle  = new VerticalLine(10, 13, 50, '%');
            VerticalLine   obstacle2 = new VerticalLine(5, 9, 10, '%');
            HorizontalLine obstacle3 = new HorizontalLine(3, 9, 14, '%');
            HorizontalLine obstacle4 = new HorizontalLine(8, 41, 19, '%');

            wallList.Add(top);
            wallList.Add(Left);
            wallList.Add(Right);
            wallList.Add(Bottom);
            wallList.Add(obstacle);
            wallList.Add(obstacle2);
            wallList.Add(obstacle3);
            wallList.Add(obstacle4);
        }