Example #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;
 }
Example #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;
 }
        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;
        }