Esempio n. 1
0
 void Tank_Died(object sender, VehicleEventArgs e)
 {
     if (e.Vehicle != this.round.UserTank)
     {
         this.drawingList.Remove(e.Vehicle.Brush);
     }
 }
Esempio n. 2
0
 void userTank_TookHit(object sender, VehicleEventArgs e)
 {
     this.hitsTaken++;
     this.Score = this.Score + Scoring.PointsPerHitAgainst;
 }
Esempio n. 3
0
 void vehicle_Died(object sender, VehicleEventArgs e)
 {
     this.vehicleCanvas.Children.Remove(this.shapeCanvas);
     this.explode.Begin();
 }
Esempio n. 4
0
 void userTank_HitProjectile(object sender, VehicleEventArgs e)
 {
     this.projectilesHit++;
     this.Score = this.Score + Scoring.PointsPerProjectileHit;
 }
Esempio n. 5
0
 void userTank_HitPowerup(object sender, VehicleEventArgs e)
 {
     this.powerupsHit++;
     this.Score = this.Score + Scoring.PointsPerPowerupHit;
 }
Esempio n. 6
0
 void enemy_FlippedOver(object sender, VehicleEventArgs e)
 {
     this.enemiesFlippedOver++;
     this.Score = this.Score + Scoring.PointsPerFlippedEnemy;
 }
Esempio n. 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;
     }
 }
Esempio n. 8
0
 void UserTank_AccuracyChanged(object sender, VehicleEventArgs e)
 {
     this.accuracyBlock.Text = this.game.CurrentRound.UserTank.PercentError.ToString("##.0%");
 }