Example #1
0
 public PowerUpStatus(PowerUp powerUp, ImageModel image)
 {
     this.PowerUp = powerUp;
     this.Image = image;
 }
Example #2
0
        public void RemovePowerUp(PowerUp powerUp)
        {
            model.maxSpeed -= powerUp.maxSpeed;
            model.acceleration -= powerUp.acceleration;
            model.weight -= powerUp.weight;
            model.JumpStartVelocity -= powerUp.jumpStartVelocity;

            view.Blinking = false;
            view.Red = false;
        }
Example #3
0
 public PowerUpStatus(PowerUp powerUp, ImageModel image)
 {
     this.PowerUp = powerUp;
     this.Image   = image;
 }
Example #4
0
        public void AddPowerUp(PowerUp powerUp)
        {
            model.maxSpeed += powerUp.maxSpeed;
            model.acceleration += powerUp.acceleration;
            model.weight += powerUp.weight;
            model.JumpStartVelocity += powerUp.jumpStartVelocity;

            view.Blinking = true;
            view.Red = true;
        }