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