Exemplo n.º 1
0
 public PowerUpStatus(PowerUp powerUp, ImageModel image)
 {
     this.PowerUp = powerUp;
     this.Image = image;
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public PowerUpStatus(PowerUp powerUp, ImageModel image)
 {
     this.PowerUp = powerUp;
     this.Image   = image;
 }
Exemplo n.º 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;
        }