コード例 #1
0
ファイル: Main.cs プロジェクト: Sanu-samm/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();
                }
            }
        }
コード例 #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
ファイル: Pile.cs プロジェクト: Sanu-samm/callbreak
 public virtual void OnPotAdd(PileEventArgs e)
 {
     if (PotAdd != null)
         PotAdd(this, e);
 }