Exemple #1
0
 void HandleProjectileHit(Projectile projectile)
 {
     this.Body.Position = this.Body.Position;
     this.hitPoints = this.hitPoints - projectile.Damage;
     if (this.hitPoints <= 0)
     {
         this.Acquire(projectile);
         this.Expire();
     }
 }
Exemple #2
0
 void Acquire(Projectile projectile)
 {
     if (this.PowerupAcquired != null)
     {
         this.PowerupAcquired(this, new PowerupAcquiredEventArgs(projectile.Source, this));
     }
 }
Exemple #3
0
 public ProjectileEventArgs(Projectile projectile)
 {
     this.Projectile = projectile;
 }
 public ProjectileExplodedEventArgs(Projectile projectile, BaseGameObject target)
 {
     this.Projectile = projectile;
     this.Target = target;
 }
Exemple #5
0
 public void TakeHit(Projectile projectile)
 {
     if (this.TookHit != null)
     {
         this.TookHit(this, new VehicleEventArgs(this));
     }
 }