Example #1
0
        private void createHexagonalBoard()
        {
            this.hexBoard = new HexBoard(hexBoardWidth, hexBoardHeight, hexSize, orientation, xOffset, yOffset, backgroundColor);
            this.hexBoard.BoardState.BackgroundColor      = Color.Green;
            this.hexBoard.BoardState.GridPenWidth         = penWidth;
            this.hexBoard.BoardState.ActiveHexBorderColor = Color.Red;
            this.hexBoard.BoardState.ActiveHexBorderWidth = penWidth;

            this.hexDraw = new HexDraw(hexBoard, xOffset, yOffset);
        }
Example #2
0
 public HexDraw(Hexagonal.HexBoard board, int xOffset, int yOffset)
 {
     this.Initialize(board, xOffset, yOffset);
 }
Example #3
0
 private void Initialize(Hexagonal.HexBoard board, int xOffset, int yOffset)
 {
     this.board        = board;
     this.boardXOffset = xOffset;
     this.boardYOffset = yOffset;
 }
Example #4
0
 public HexDraw(Hexagonal.HexBoard board)
 {
     this.Initialize(board, 0, 0);
 }