Esempio n. 1
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>();
 }
Esempio n. 2
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>();
 }
Esempio n. 3
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>();
 }
Esempio n. 4
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();
 }
Esempio n. 5
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWinRule();
     _isDealer     = true;
 }
Esempio n. 6
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>();
 }
Esempio n. 7
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>();
 }
Esempio n. 8
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>();
 }
Esempio n. 9
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();
 }
Esempio 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_deckFactory = new DeckFactory();
 }
Esempio n. 11
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>();
 }
Esempio n. 12
0
 public Game(AbstractRulesFactory ruleSet)
 {
     rules = new RulesFactory(ruleSet);
     m_dealer = new Dealer(rules);
     //m_dealer = new Dealer(new rules.RulesFactory(ruleSet));
     m_player = new Player();
     PrepareGetRules();
 }
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_softRule    = a_rulesFactory.SoftSeventeenRule();
     m_winRule     = a_rulesFactory.PlayerWinsRule();
 }
Esempio n. 14
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
 }
Esempio n. 15
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRules    = a_rulesFactory.GetEasyWinningRule();
 }
Esempio n. 16
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     winnerIfEqual = a_rulesFactory.GetWinnerIfEqualRule();
 }
Esempio n. 17
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.EqualPlayerWin();
 }
Esempio n. 18
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_hitRule     = a_rulesFactory.GetHitRule();
     m_winRule     = a_rulesFactory.GetWhoWinEqualRule();
 }
Esempio n. 19
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule    = a_rulesFactory.GetNewGameRule();
     m_hitRule        = a_rulesFactory.GetHitRule();
     m_winnerStrategy = a_rulesFactory.GetWinnerStrategy();
 }
Esempio n. 20
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule  = a_rulesFactory.GetNewGameRule();
     m_hitRule      = a_rulesFactory.GetHitRule();
     m_winCondition = a_rulesFactory.GetWinRule();
 }
Esempio n. 21
0
 public Dealer(rules.RulesFactory a_rulesFactory)
 {
     m_newGameRule = a_rulesFactory.GetNewGameRule();
     m_softRule    = a_rulesFactory.SoftHitRule();
     m_winnerRule  = a_rulesFactory.GetGameWinnerRule();
 }