Exemple #1
0
        void currentRound_PowerupAcquired(object sender, PowerupAcquiredEventArgs e)
        {
            if (e.Vehicle == this.currentRound.UserTank)
            {
                if (e.Powerup is BurstPowerup == false)
                {
                    this.player.Powerups.Add(e.Powerup);
                }

                Player.ApplyPowerup(this.player, this.currentRound.UserTank, e.Powerup);
            }
            else
            {
                if (e.Powerup is BurstPowerup == false)
                {
                    this.computer.Powerups.Add(e.Powerup);
                }
                Player.ApplyPowerup(this.computer, this.currentRound.Enemies, e.Powerup);
            }
        }
Exemple #2
0
 void powerup_PowerupAcquired(object sender, PowerupAcquiredEventArgs e)
 {
     if (this.PowerupAcquired != null)
     {
         this.PowerupAcquired(this, e);
     }
 }