public GamePanel2() { InitializeComponent(); CurrentTurn.SetTileType(TileType.board); CurrentTurn.ShowLinks(false); }
private void SetTurn() { SetVisualTileCounts(); List <HexagonTile> posibilities = new List <HexagonTile>(); var colors = from h in hexagonList where h.TileType == this.turnOrder[this.currentTurn] select h; foreach (HexagonTile tile in colors) { FindPosibilities(tile, posibilities); } if (posibilities.Count == 0) { SkipTurn(); return; } skipTurns = 0; foreach (HexagonTile h in posibilities) { ((BoardHexagon)h.Visual).SetTileType(TileType.none); ((BoardHexagon)h.Visual).MouseLeftButtonDown += ChooseTurn; } CurrentTurn.SetTileType(this.turnOrder[this.currentTurn]); }
public GamePanel() { InitializeComponent(); CurrentTurn.SetTileType(TileType.board); CurrentTurn.ShowLinks(false); this.firstCapture = TileType.none; this.turnOrder[0] = TileType.yellow; this.currentTurn = 0; }