public virtual void onPowerupRemoval(Powerup p) { }
/// <summary> /// This handles application of a powerup which triggers changePowerupState /// and resetPowerupState as well as resetting the timer /// </summary> public virtual void applyPowerup(Powerup p) { }
public virtual void onPowerupApplication(Powerup p) { }
public void spawnAt(Vector2 position, Powerup p, bool isColorCoded) { base.spawnAt(position); this.isColorCoded = isColorCoded; this.powerup = p; this.isPoweredUp = true; this.MaxVel = 666; this.MaxAcc = 700; changeState(state.Moving); randomX = rnd.NextDouble() * 2 - rnd.NextDouble(); randomY = rnd.NextDouble() * 2 - rnd.NextDouble(); this.isSchooling = false; this.isLeader = false; this.partner = null; this.gettingIntoSchoolRange = false; }