Esempio n. 1
0
 /// <summary>
 /// Add a new powerup
 /// </summary>
 public void Add(Powerup p)
 {
     powerups.AddLast(p);
 }
Esempio n. 2
0
 /// <summary>
 /// Add a new powerup
 /// </summary>
 public void Add(Powerup p)
 {
     powerups.AddLast(p);
 }
Esempio n. 3
0
        /// <summary>
        /// Create a new powerup and add it to the powerup manager
        /// </summary>
        public Powerup AddPowerup(
            PowerupType type,
            Matrix transform)
        {
            // create powerup
            Powerup p = new Powerup(type, transform, powerupModels[(int)type]);

            // add it to the powerup manager
            powerup.Add(p);

            return p;
        }