Exemplo n.º 1
0
 public Cell(int col, int row, CellSide rightWall, CellSide bottomWall, Map map)
 {
     this.myColumn = col;
     this.myRow = row;
     this.myRightWall = rightWall;
     this.myBottomWall = bottomWall;
     this.myMap = map;
 }
Exemplo n.º 2
0
 public Cell(int col, int row, CellSide rightWall, CellSide bottomWall, Map map, Bitmap bgImage)
 {
     this.myColumn = col;
     this.myRow = row;
     this.myRightWall = rightWall;
     this.myBottomWall = bottomWall;
     this.myMap = map;
     this.myBgImage = bgImage;
 }
Exemplo n.º 3
0
        public Pen setPen(CellSide side)
        {
            Pen myPen = new Pen(Brushes.Black, 3);

            if (side.isHighlighted == true)
            {
                myPen.Color = Color.Red;
                return myPen;
            }

            if (side.hasWall == 0)
            {
                myPen.Color = Color.LightBlue;
                myPen.Width = 1;
            }
            return myPen;
        }