Exemplo n.º 1
0
        private void AddToWallList(List <MazeWall> walls, int xstart, int ystart, int xend, int yend)
        {
            //if (xstart == xend && ystart == yend)
            //{
            //    //Length is 1, don't add
            //    return;
            //}
            if (xend - xstart <= 1 && yend - ystart <= 1)
            {
                return;
            }

            MazeWall wall = new MazeWall(xstart, ystart, xend, yend);

            walls.Add(wall);

            //Console.WriteLine("New wall found: " + xstart + ":" + ystart + "  " + xend + ":" + yend);
        }
Exemplo n.º 2
0
        private void AddToWallList(List<MazeWall> walls, int xstart, int ystart, int xend, int yend)
        {
            //if (xstart == xend && ystart == yend)
            //{
            //    //Length is 1, don't add
            //    return;
            //}
            if (xend - xstart <= 1 && yend - ystart <= 1)
            {
                return;
            }

            MazeWall wall = new MazeWall(xstart, ystart, xend, yend);
            walls.Add(wall);

            //Console.WriteLine("New wall found: " + xstart + ":" + ystart + "  " + xend + ":" + yend);
        }
Exemplo n.º 3
0
        public WallModel(MazeWall mazeWall)
        {
            this.mazeWall = mazeWall;

            //GoGenerateVertices(TexturePosInfoGenerator.FullImage);
        }