Пример #1
0
 public bool PickupUpgrade(UpgradeBomb upgrade)
 {
     return ListOfUpgradeBomb.Remove(upgrade);
 }
Пример #2
0
 public Player AddAndApplyUpgradeBomb(UpgradeBomb u)
 {
     _upgradesBomb.Add(u);
     return ApplyUpgradeBomb(u);
 }
Пример #3
0
 public Player ApplyUpgradeBomb(UpgradeBomb u)
 {
     if(BombSecond == u.Type && this.stack > 2)
     {
         stack = stack/2;
         Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => InGameMenu._.BombStack[this.Id].Source = Texture._.TypetextureList["Stack_" + stack]));
         Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() =>InGameMenu._.BombStack[this.Id].Opacity = 1));
     }else
     {
         stack = 8;
         Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() =>InGameMenu._.BombStack[this.Id].Source = Texture._.TypetextureList["Stack_" + stack]));
         Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() =>InGameMenu._.BombStack[this.Id].Opacity = 1));
         this.BombSecond = u.Type;
         Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => InGameMenu._.BombImage[this.Id].Source = Texture._.TypetextureList["UpgradeBomb." + this.BombSecond]));
     }
     return this;
 }
Пример #4
0
 public SoftBlock(int x, int y, Upgrade u = null, UpgradeBomb bt = null)
     : base(x, y)
 {
     _myUpgrade = u;
     _myBombSec = bt;
 }