public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_EqualRule = a_rulesFactory.GetEqualRule();
     m_subscribers = new List<IObserver>();
 }
Exemplo n.º 2
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWinRule();
     _isDealer     = true;
 }
Exemplo n.º 3
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winnerRule  = a_rulesFactory.GetWinnerRule();
     m_deckFactory = new DeckFactory();
 }
Exemplo n.º 4
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_ResultRule  = a_rulesFactory.GetResultRule();
     m_subscribers = new List <IDealCardsObserver>();
 }
Exemplo n.º 5
0
        public Dealer(rules.RulesFactory a_rulesFactory)
        {
            m_newGameRule = a_rulesFactory.GetNewGameRule();
            m_hitRule = a_rulesFactory.GetHitRule();

            m_winnerRule = a_rulesFactory.EqualScoreRule();
        }
Exemplo n.º 6
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winnerRule  = a_rulesFactory.GetWinnerRule();
     m_listeners   = new List <IExcitingObserver>();
 }
Exemplo n.º 7
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule       = a_rulesFactory.GetNewGameRule();
     m_hitRule           = a_rulesFactory.GetHitRule();
     m_winRule           = a_rulesFactory.GetWhoWinsRule();
     m_BlackJackObserver = new List <BlackJackObserver>();
 }
Exemplo n.º 8
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule  = a_rulesFactory.GetNewGameRule();
     m_hitRule      = a_rulesFactory.GetHitRule();
     m_winRule      = a_rulesFactory.GetWinRule();
     m_dealCardRule = a_rulesFactory.GetCardRule();
 }
Exemplo n.º 9
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winnerRule  = a_rulesFactory.GetWinnerRule();
     m_observers   = new List <IBlackJackObserver>();
 }
Exemplo n.º 10
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_winnerRule = a_rulesFactory.GetWinnerRule();
     m_observers = new List<BlackJackObserver>();
 }
Exemplo n.º 11
0
 public Dealer(rules.RulesFactory a_rulesFactory, List <Observer> observerList)
 {
     observers     = observerList;
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWinRule();
 }
Exemplo n.º 12
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_winnerRule = a_rulesFactory.GetWinnerRule();
     m_deckFactory = new DeckFactory();
 }
Exemplo n.º 13
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_winRule = a_rulesFactory.GetWhoWinsRule();
     m_BlackJackObserver = new List<BlackJackObserver>();
 }
Exemplo n.º 14
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWinRule();
     m_subscribers = new List <ICardDealtObserver>();
 }
Exemplo n.º 15
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_winRule = a_rulesFactory.GetWinRule();
     m_card = new List<CardObserver>();
 }
Exemplo n.º 16
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_wonRule = a_rulesFactory.GetNewWonRule();
     m_observer = new List<BlackjackObserver>();
 }
Exemplo n.º 17
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_draw = a_rulesFactory.playerLose();
     m_observer = new List<rules.IgameObserver>();
 }
Exemplo n.º 18
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule   = a_rulesFactory.GetNewGameRule();
     m_hitRule       = a_rulesFactory.GetHitRule();
     m_advantageRule = a_rulesFactory.GetAdvantageRule();
     m_observers     = new List <IObserver>();
 }
Exemplo n.º 19
0
 public Dealer(rules.RulesFactory a_rulesFactory, string a_name)
     : base(a_name)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winnerRule  = a_rulesFactory.GetWinnerRule();
     m_subscribers = new List <ICardListener>();
 }
Exemplo n.º 20
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_observer = new List<IGameobserver>();
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetSoft17Rule();
     //This is our rule. None shall disobey!
     m_tieRule = a_rulesFactory.GetTieRule();
 }
Exemplo n.º 21
0
        public Dealer(rules.RulesFactory a_rulesFactory)
        {
            m_newGameRule = a_rulesFactory.GetNewGameRule();
            m_hitRule = a_rulesFactory.GetSoft17Rule(); // CHANGED RULE.
            m_drawRule = a_rulesFactory.GetDrawRule(); // RULE FOR PLAYER TO WIN ON DRAW.

            m_observers = new List<CardDrawObserver>();
        }
        public Dealer(rules.RulesFactory a_rulesFactory)
        {
            m_observers = new List<PlayerHandChangedObserver>();

            m_newGameRule = a_rulesFactory.GetNewGameRule();
            m_hitRule = a_rulesFactory.GetHitRule();
            m_winRule = a_rulesFactory.GetWinRule();
        }
Exemplo n.º 23
0
        public Dealer(rules.RulesFactory a_rulesFactory)
        {
            m_newGameRule = a_rulesFactory.GetNewGameRule();
            m_hitRule = a_rulesFactory.GetHitRule();
            m_tieRule = a_rulesFactory.GetTieRule();

            m_observers = new List<IDrawCardObserver>();
        }
Exemplo n.º 24
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_winRule = a_rulesFactory.GetWinRule();
     m_maxScoreRule = a_rulesFactory.getMaxScoreRule();
     m_subscribers = new List<CardDealtListener>();
 }
Exemplo n.º 25
0
        // TODO testing herer
        public Dealer(rules.RulesFactory a_rulesFactory)
        {
            m_newGameRule = a_rulesFactory.GetNewGameRule();
            m_hitRule = a_rulesFactory.GetHitRule();
            //m_hitRule = a_rulesFactory.Get17Rule();

            // TODO GetWinnerStrategy is hardcoden at momens
            m_winnerRule = a_rulesFactory.GetWinnerStrategy();
        }
Exemplo n.º 26
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
 }
Exemplo n.º 27
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWinOnEqualStrategy();
 }
Exemplo n.º 28
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule    = a_rulesFactory.GetNewGameRule();
     m_hitRule        = a_rulesFactory.GetHitRule();
     m_winnerStrategy = a_rulesFactory.GetGameWinnerStrategy();
 }
Exemplo n.º 29
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRules    = a_rulesFactory.GetEasyWinningRule();
 }
Exemplo n.º 30
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     winnerIfEqual = a_rulesFactory.GetWinnerIfEqualRule();
 }
Exemplo n.º 31
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetAmericanGameRule();
     m_hitRule     = a_rulesFactory.GetSoft17Rule();
     m_winnerRule  = a_rulesFactory.GetPlayerWinnerStrategy();
 }
 public Dealer(rules.RulesFactory theRulesFactory)
 {
     theNewGameRule = theRulesFactory.GetNewGameRule();
     theHitRule     = theRulesFactory.GetHitRule();
     theWinnerRule  = theRulesFactory.GetWinnerRule();
 }
Exemplo n.º 33
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.EqualPlayerWin();
 }
Exemplo n.º 34
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_equalScoreWinRule = a_rulesFactory.GetEqualScoreRule();
 }
Exemplo n.º 35
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule = a_rulesFactory.GetHitRule();
     m_winRule = a_rulesFactory.GetWinRule();
 }
Exemplo n.º 36
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWhoWinEqualRule();
 }
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_softRule    = a_rulesFactory.SoftSeventeenRule();
     m_winRule     = a_rulesFactory.PlayerWinsRule();
 }
Exemplo n.º 38
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule  = a_rulesFactory.GetNewGameRule();
     m_hitRule      = a_rulesFactory.GetHitRule();
     m_winCondition = a_rulesFactory.GetWinRule();
 }
Exemplo n.º 39
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_softRule    = a_rulesFactory.SoftHitRule();
     m_winnerRule  = a_rulesFactory.GetGameWinnerRule();
 }