Exemple #1
0
 void Tank_Died(object sender, VehicleEventArgs e)
 {
     if (e.Vehicle != this.round.UserTank)
     {
         this.drawingList.Remove(e.Vehicle.Brush);
     }
 }
Exemple #2
0
 void userTank_TookHit(object sender, VehicleEventArgs e)
 {
     this.hitsTaken++;
     this.Score = this.Score + Scoring.PointsPerHitAgainst;
 }
Exemple #3
0
 void vehicle_Died(object sender, VehicleEventArgs e)
 {
     this.vehicleCanvas.Children.Remove(this.shapeCanvas);
     this.explode.Begin();
 }
Exemple #4
0
 void userTank_HitProjectile(object sender, VehicleEventArgs e)
 {
     this.projectilesHit++;
     this.Score = this.Score + Scoring.PointsPerProjectileHit;
 }
Exemple #5
0
 void userTank_HitPowerup(object sender, VehicleEventArgs e)
 {
     this.powerupsHit++;
     this.Score = this.Score + Scoring.PointsPerPowerupHit;
 }
Exemple #6
0
 void enemy_FlippedOver(object sender, VehicleEventArgs e)
 {
     this.enemiesFlippedOver++;
     this.Score = this.Score + Scoring.PointsPerFlippedEnemy;
 }
Exemple #7
0
 void vehicle_ControlledByUserChanged(object sender, VehicleEventArgs e)
 {
     if (vehicle.ControlledByUser)
     {
         Page.SceneLoop.Update += new EventHandler<SceneLoopEventArgs>(sceneLoop_Update);
     }
     else
     {
         Page.SceneLoop.Update -= sceneLoop_Update;
     }
 }
Exemple #8
0
 void UserTank_AccuracyChanged(object sender, VehicleEventArgs e)
 {
     this.accuracyBlock.Text = this.game.CurrentRound.UserTank.PercentError.ToString("##.0%");
 }