コード例 #1
0
ファイル: Board.cs プロジェクト: Danic700/FourInARow
 public void UpdateBoardCell(Coin.eCoinType i_CoinType, int i_CellRow, int i_CellColumn)
 {
     this.GetBoardCell(i_CellRow, i_CellColumn).CoinInCell = new Coin(i_CoinType);
 }
コード例 #2
0
ファイル: FourInARowGame.cs プロジェクト: Danic700/FourInARow
 private void AddPlayer(string i_Name, Player.ePlayerType i_PlayerType, Coin.eCoinType i_CoinType)
 {
     this.m_Players.Add(new Player(i_Name, i_PlayerType, i_CoinType));
 }
コード例 #3
0
ファイル: GameBoardForm.cs プロジェクト: Danic700/FourInARow
 private void UpdateFormBoardCell(int i_CellRow, int i_CellColumn, Coin.eCoinType? i_CellCoin)
 {
     if (i_CellCoin == Coin.eCoinType.X)
     {
         this.m_BoardCells[i_CellRow][i_CellColumn].Image = Properties.Resources.FullCellRed;
     }
     else
     {
         if (i_CellCoin == Coin.eCoinType.O)
         {
             this.m_BoardCells[i_CellRow][i_CellColumn].Image = Properties.Resources.FullCellYellow;
         }
         else
         {
             this.m_BoardCells[i_CellRow][i_CellColumn].Image = Properties.Resources.EmptyCell;
         }
     }
 }