Ejemplo n.º 1
0
        public void IsFighted(BrokeThePigWeapon Weapon)
        {
            if (ValueChanged != null)
            {
                ValueChanged();
            }
            if (Weapon != null)
                Number -= Weapon.Damage;
            if (Number <= 0)
            {
                Number = 0;
                if (BecomeNull != null) {
                    BecomeNull();
                }
            }

            OnPropertyChanged("Number");
        }
Ejemplo n.º 2
0
 void Weapon_Selected(BrokeThePigWeapon SelectedWeapon)
 {
     if(CurrentWeapon!=null)
         CurrentWeapon.UnSelect();
     SelectedWeapon.Select();
     CurrentWeapon = SelectedWeapon;
 }
Ejemplo n.º 3
0
 public void AddWeapon(BrokeThePigWeapon Weapon)
 {
     Weapons.Add(Weapon);
     Weapon.SelectedEvent += Weapon_Selected;
     Weapon.FightEvent += Weapon_FightEvent;
 }