-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.cs
33 lines (29 loc) · 816 Bytes
/
Game.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace PoolPgiaGame
{
public class Game
{
private static GameBoard m_board;
private static int m_RoundsNumber;
private MainForm m_MainForm;
public Game()
{
m_MainForm = new MainForm();
m_MainForm.ShowDialog();
}
public static GameBoard Board
{
get { return m_board; }
}
public static void GameRun(int i_NumberOfChansess)
{
m_RoundsNumber = i_NumberOfChansess;
m_board = new GameBoard(i_NumberOfChansess);
GameManger.SetButtonsToEnable(m_board.GetInteractiveGameBoradButtonsInRound(0));
m_board.ShowDialog();
}
public static int RoundsNumber
{
get { return m_RoundsNumber; }
}
}
}