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(); }
void UserTank_MaxHitPointsChanged(object sender, HitPointsChangedEventArgs e) { this.maxHPBlock.Text = this.game.CurrentRound.UserTank.MaxHitPoints.ToString(); }