Esempio n. 1
0
        public Powerup(int x, int y, int duration, PowerupEffects.Effects ef, bool unique)
        {
            this.spriteX = x;
            this.spriteY = y;

            this.duration = duration;

            this.size = 40;

            this.effect = ef;

            this.unique = unique;
        }
Esempio n. 2
0
 public Powerup(int x, int y, int duration, PowerupEffects.Effects ef)
     : this(x, y, duration, ef, false)
 {
 }
Esempio n. 3
0
 bool findPowerup(PowerupEffects.Effects ef)
 {
     for (int i = 0; i < powerups.Count; i++)
         if (powerups[i].effect == ef)
             return true;
     return false;
 }