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;
     }
 }
Exemple #3
0
 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)
 {
 }
Exemple #9
0
 public abstract void InitializePowerUpBase(PowerUpBaseViewModel powerUpBase);
Exemple #10
0
 public virtual void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg)
 {
 }
Exemple #11
0
 /// 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)
 {
 }
 /// Subscribes to the property and is notified anytime the value changes.
 public override void PowerUpChanged(PowerUpBaseViewModel value)
 {
     base.PowerUpChanged(value);
 }
 /// 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;
 }
Exemple #16
0
 public override void InitializePowerUpBase(PowerUpBaseViewModel powerUpBase)
 {
 }
Exemple #17
0
 public override void ApplyPowerUp(PowerUpBaseViewModel powerUpBase, PlayerShipViewModel arg)
 {
     base.ApplyPowerUp(powerUpBase, arg);
     //globally registered instance !
     LevelManager.ShowNotification.Execute(powerUpBase.Description);
 }