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); }
public HexDraw(Hexagonal.HexBoard board, int xOffset, int yOffset) { this.Initialize(board, xOffset, yOffset); }
private void Initialize(Hexagonal.HexBoard board, int xOffset, int yOffset) { this.board = board; this.boardXOffset = xOffset; this.boardYOffset = yOffset; }
public HexDraw(Hexagonal.HexBoard board) { this.Initialize(board, 0, 0); }