Example #1
0
 public ReversiGameMenu()
 {
     Application.EnableVisualStyles();
     m_BlackPlayer  = new Player();
     m_SettingsForm = new GameSettingsForm();
     m_SettingsForm.ShowDialog();
     m_BoardSize          = m_SettingsForm.BoardSize + 2;
     m_WhitePlayer        = new Player(m_SettingsForm.PlayerType, eKindOfCell.White);
     m_ReversiGameManager = new ReversiGameManager(m_BlackPlayer, m_WhitePlayer, m_BoardSize);
 }
Example #2
0
 public ReversiGameMenu()
 {
     Application.EnableVisualStyles();
     m_BlackPlayer = new Player();
     m_SettingsForm = new GameSettingsForm();
     m_SettingsForm.ShowDialog();
     m_BoardSize = m_SettingsForm.BoardSize + 2;
     m_WhitePlayer = new Player(m_SettingsForm.PlayerType, eKindOfCell.White);
     m_ReversiGameManager = new ReversiGameManager(m_BlackPlayer, m_WhitePlayer, m_BoardSize);
 }
Example #3
0
 public ReversiGameForm(ReversiGameManager i_GameManager)
 {
     m_GameManager      = i_GameManager;
     m_ButtonsBoardSize = m_GameManager.BoardSize - 2;
     m_GameManager.m_NoAvailableMovesMessage += this.NoAvailableMovesMessage;
     this.Size            = new Size((2 * k_DistanceFromBorder) + (k_SizeOfButton * m_ButtonsBoardSize), (3 * k_DistanceFromBorder) + (k_SizeOfButton * m_ButtonsBoardSize));
     this.FormBorderStyle = FormBorderStyle.Fixed3D;
     this.StartPosition   = FormStartPosition.CenterScreen;
     this.MinimizeBox     = false;
     this.MaximizeBox     = false;
     this.Text            = "Reversi Game";
     m_ButtonsBoardMatrix = new Button[m_ButtonsBoardSize, m_ButtonsBoardSize];
     initiateButtonsBoardMatrix();
 }
Example #4
0
 public ReversiGameForm(ReversiGameManager i_GameManager)
 {
     m_GameManager = i_GameManager;
     m_ButtonsBoardSize = m_GameManager.BoardSize - 2;
     m_GameManager.m_NoAvailableMovesMessage += this.NoAvailableMovesMessage;
     this.Size = new Size((2 * k_DistanceFromBorder) + (k_SizeOfButton * m_ButtonsBoardSize), (3 * k_DistanceFromBorder) + (k_SizeOfButton * m_ButtonsBoardSize));
     this.FormBorderStyle = FormBorderStyle.Fixed3D;
     this.StartPosition = FormStartPosition.CenterScreen;
     this.MinimizeBox = false;
     this.MaximizeBox = false;
     this.Text = "Reversi Game";
     m_ButtonsBoardMatrix = new Button[m_ButtonsBoardSize, m_ButtonsBoardSize];
     initiateButtonsBoardMatrix();
 }