Пример #1
0
 public RulesFactory(view.WinnerAtDraw winnerAtDraw, view.Soft17 soft17, view.GameRules gameRules)
 {
     m_hitRule = soft17;
     m_winnerAtDraw = winnerAtDraw;
     m_gameRules = gameRules;
 }
Пример #2
0
 public Game(view.WinnerAtDraw winnerAtDraw, view.Soft17 soft17, view.GameRules gameRules)
 {
     m_dealer = new Dealer(new rules.RulesFactory(winnerAtDraw, soft17, gameRules));
     m_player = new Player();
 }
Пример #3
0
 public RulesFactory(view.WinnerAtDraw winnerAtDraw, view.Soft17 soft17, view.GameRules gameRules)
 {
     m_hitRule      = soft17;
     m_winnerAtDraw = winnerAtDraw;
     m_gameRules    = gameRules;
 }