Exemplo n.º 1
0
 public bool NewGame(Player a_player)
 {
     if (m_deck == null || IsGameOver())
     {
         m_deck = new Deck();
         ClearHand();
         a_player.ClearHand();
         return(m_newGameRule.NewGame(m_deck, this, a_player));
     }
     return(false);
 }
Exemplo n.º 2
0
 public bool NewGame(Player a_player)
 {
     if (m_deck == null || IsGameOver())
     {
         m_deck = new Deck();
         ClearHand();
         a_player.ClearHand();
         return m_newGameRule.NewGame(m_deck, this, a_player);
     }
     return false;
 }
Exemplo n.º 3
0
        public bool NewGame(Player a_player)
        {
            if (m_deck == null || IsGameOver())
            {
                //Get a 'normal' deck of cards or get a 'fake' deck, that can be manipulated
                m_deck = m_deckFactory.GetDeck();

                ClearHand();
                a_player.ClearHand();
                return(m_newGameRule.NewGame(m_deck, this, a_player));
            }
            return(false);
        }
Exemplo n.º 4
0
        public bool NewGame(Player a_player)
        {
            m_newGameRule.Accept(new view.NewGameRulePrinter());
            m_hitRule.Accept(new view.HitRulePrinter());
            m_winRule.Accept(new view.WinRulePrinter());

            if (m_deck == null || IsGameOver())
            {
                m_deck = new Deck();
                ClearHand();
                a_player.ClearHand();
                return m_newGameRule.NewGame(m_deck, this, a_player);
            }
            return false;
        }
Exemplo n.º 5
0
        public bool NewGame(Player a_player)
        {
            if (m_deck == null || IsGameOver())
            {
                //Get a 'normal' deck of cards or get a 'fake' deck, that can be manipulated
                m_deck = m_deckFactory.GetDeck();

                ClearHand();
                a_player.ClearHand();
                return m_newGameRule.NewGame(m_deck, this, a_player);
            }
            return false;
        }