Exemple #1
0
 public virtual void onPowerupRemoval(Powerup p)
 {
 }
Exemple #2
0
 /// <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)
 {
 }
Exemple #3
0
 public virtual void onPowerupApplication(Powerup p)
 {
 }
Exemple #4
0
        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;
        }