Example #1
0
 private void CheckPlayerWeapon(string weaponName, string weaponTyp, PictureBox weaponPictureBox)
 {
     weaponPictureBox.BorderStyle = BorderStyle.None;
     if (_game.CheckPlayerInventory(weaponName))
     {
         weaponPictureBox.Visible = true;
         if (_game.IsWeaponEquipped(weaponName))
         {
             weaponPictureBox.BorderStyle = BorderStyle.FixedSingle;
             SetupAttackButtons(weaponTyp);
         }
     }
 }