示例#1
0
        /// <summary>
        /// Events that occurs when a card is added to pot
        /// when there are 4 cards in the pot it starts the animation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Pot_PotAdd(object sender, PileEventArgs e)
        {
            gameData.WastePile.AddCard(e.card); // add the played card to waste pile too

            if (gameData.CurrentPot.CardPile.Count == 4)
            {
                lock (this)
                {
                    IsAnimating      = true;
                    animationCounter = 40;
                    this.animationTimer.Start();
                }
            }
        }
示例#2
0
文件: Pile.cs 项目: nishesj/callbreak
 public virtual void OnPotAdd(PileEventArgs e)
 {
     if (PotAdd != null)
         PotAdd(this, e);
 }
示例#3
0
文件: Main.cs 项目: nishesj/callbreak
        /// <summary>
        /// Events that occurs when a card is added to pot
        /// when there are 4 cards in the pot it starts the animation 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Pot_PotAdd(object sender, PileEventArgs e)
        {
            gameData.WastePile.AddCard(e.card); // add the played card to waste pile too

            if (gameData.CurrentPot.CardPile.Count == 4)
            {
                lock (this)
                {
                    IsAnimating = true;
                    animationCounter = 40;
                    this.animationTimer.Start();
                }

            }
        }
示例#4
0
 public virtual void OnPotAdd(PileEventArgs e)
 {
     if (PotAdd != null)
         PotAdd(this, e);
 }