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; }
public Powerup(int x, int y, int duration, PowerupEffects.Effects ef) : this(x, y, duration, ef, false) { }
bool findPowerup(PowerupEffects.Effects ef) { for (int i = 0; i < powerups.Count; i++) if (powerups[i].effect == ef) return true; return false; }