示例#1
0
 void vehicle_HitPointsChanged(object sender, HitPointsChangedEventArgs e)
 {
     if (e.Change < 0)
     {
         this.damageText.Text = e.Change.ToString();
     }
     else
     {
         this.damageText.Text = "+" + e.Change.ToString();
     }
     this.doDamage.Begin();
     this.UpdateHitPointsDisplay();
 }
示例#2
0
 void UserTank_MaxHitPointsChanged(object sender, HitPointsChangedEventArgs e)
 {
     this.maxHPBlock.Text = this.game.CurrentRound.UserTank.MaxHitPoints.ToString();
 }