示例#1
0
 public void NotifyScoreChanged(ScoreEventArgs sea)
 {
     if (ScoreChanged != null)
     {
         ScoreChanged(this, sea);
     }
 }
示例#2
0
        /**
         * Fügt die erzielten Punkte des Schrittes zum Gesamtscore dazu
         */
        public void addScore(int score)
        {
            this.score += score;
            ScoreEventArgs sea = new ScoreEventArgs();
            sea.score = this.score;

            sea.level = getLevel();
            NotifyScoreChanged(sea);
        }
示例#3
0
        /**
         * Fügt die erzielten Punkte des Schrittes zum Gesamtscore dazu
         */
        public void addScore(int score)
        {
            this.score += score;
            ScoreEventArgs sea = new ScoreEventArgs();

            sea.score = this.score;

            sea.level = getLevel();
            NotifyScoreChanged(sea);
        }
示例#4
0
 public void NotifyScoreChanged(ScoreEventArgs sea)
 {
     if (ScoreChanged != null)
     {
         ScoreChanged(this, sea);
     }
 }
示例#5
0
 /**
  * Score Event Handler
  */
 public void OnScoreChanged(object sender, ScoreEventArgs bea)
 {
     Dispatcher.BeginInvoke(delegate
     {
         if (iv.rootContainer.Child == this)
         {
             scoreText.Text = bea.score + "";
             levelText.Text = bea.level + "";
             if (previousLevel != bea.level)
             {
                 fallWorker.setLevel(bea.level);
                 previousLevel = bea.level;
                 levelFontSizeSB.Begin();
             }
         }
     });
 }