Beispiel #1
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        /// <param name="me">The <see cref="ChiamataLibrary.Player"/> instance representing the AI.</param>
        public void Setup(Player me)
        {
            this._me = me;
            if (me.Role == EnRole.CHIAMANTE)
            {
                _cardChooser = new AICChiamanteTakeAll(10, 25, 3);
            }
            else if (me.Role == EnRole.SOCIO)
            {
                _cardChooser = new AICSocioNascosto(10, 25, 3);
            }
            else
            {
                _cardChooser = new AICAltriCargaOsti(10, 20, 3);
            }

            _cardChooser.Setup(me);
        }
Beispiel #2
0
 /// <summary>
 /// Notifies the AI that the game is starting and sets up the card chooser.
 /// </summary>
 private void StartGame()
 {
     _cardChooser.Setup(me);
 }