Example #1
0
 public void UseWeapon()
 {
     if (weapon == null)
     {
         Console.WriteLine("Weapon is not set!");
         return;
     }
     weapon.UseWeapon();
 }
 public void Fight()
 {
     weapon.UseWeapon();
 }
Example #3
0
 public void Fight() => weaponBehavior.UseWeapon();
 public void UseWeapon()
 {
     weaponBehavior.UseWeapon();
 }
Example #5
0
 public virtual void Fight()
 {
     WeaponBehavior.UseWeapon();
 }
Example #6
0
 public void PerformWeapon()
 {
     Iweapon.UseWeapon();
 }
Example #7
0
 public void WeaponInterface()
 {
     _weapon.UseWeapon();
 }