protected override void InitializeViewModel(ViewModel viewModel) { PowerUpBaseViewModel powerUpBase = ((PowerUpBaseViewModel)(viewModel)); powerUpBase.Modifier = this._Modifier; powerUpBase.Description = this._Description; }
public override void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg) { base.ApplyPowerUp(powerUpBase, arg); if (arg.Weapon != null) { arg.Weapon.FireRate += powerUpBase.Modifier; } }
public override void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg) { base.ApplyPowerUp(powerUpBase, arg); //globally registered instance ! LevelManager.ShowNotification.Execute(powerUpBase.Description); }
public abstract void InitializePowerUpBase(PowerUpBaseViewModel powerUpBase);
/// Subscribes to the property and is notified anytime the value changes. public virtual void PowerUpChanged(PowerUpBaseViewModel value) { }
public override void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg) { base.ApplyPowerUp(powerUpBase, arg); arg.MovementSpeed += powerUpBase.Modifier; }
public virtual void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg) { }
/// Subscribes to the property and is notified anytime the value changes. public override void PowerUpChanged(PowerUpBaseViewModel value) { base.PowerUpChanged(value); }
public override void InitializePowerUpBase(PowerUpBaseViewModel powerUpBase) { }
public override void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg) { base.ApplyPowerUp(powerUpBase, arg); arg.MovementSpeed+= powerUpBase.Modifier; }