예제 #1
0
        private void buttonAttackUp_Click(object sender, EventArgs e)
        {
            _game.Attack(Direction.Up, _random);

            UpdateGame();

            if (pictureBoxItemBluePotion.BorderStyle == BorderStyle.FixedSingle)
            {
                buttonAttackDown.Show();
                buttonAttackLeft.Show();
                buttonAttackRight.Show();
                buttonAttackUp.Text = "↑";
                pictureBoxItemBluePotion.Visible = false;
                _game.RemoveWeaponInRoom(true);
            }
            if (pictureBoxItemRedPotion.BorderStyle == BorderStyle.FixedSingle)
            {
                buttonAttackDown.Show();
                buttonAttackLeft.Show();
                buttonAttackRight.Show();
                buttonAttackUp.Text             = "↑";
                pictureBoxItemRedPotion.Visible = false;
                _game.RemoveWeaponInRoom(false);
            }
        }