Ejemplo n.º 1
0
 /// <summary>
 /// Repopulates the powerups list, based on the parameters given
 /// </summary>
 private void repopulatePowerups(List <Pirates.Powerup> powerups, int curTurn)
 {
     this.powerups.Clear();
     if (powerups != null)
     {
         foreach (Pirates.Powerup powerup in powerups)
         {
             this.powerups.Add(Powerup.GetPowerup(powerup, curTurn));
         }
     }
     this.powerups.RemoveAll(pu => pu == null);
 }