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