Ejemplo n.º 1
0
 /// <summary>
 /// Add a new powerup
 /// </summary>
 public void Add(Powerup p)
 {
     powerups.AddLast(p);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add a new powerup
 /// </summary>
 public void Add(Powerup p)
 {
     powerups.AddLast(p);
 }
Ejemplo 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;
        }