public override void AttackTwo() { bool hit = AAttackXY(1, 1); if (hit) { Opponent.Hurt(Fighter.rangen.Next(2, 6)); Opponent.Move(-1); } }
public override void AttackFour() { bool hit = AAttackXY(2, 2); if (hit) { Opponent.Hurt(Fighter.rangen.Next(2, 6)); Opponent.Move(-2); } }
public override void AttackOne() { bool hit1 = AAttackXY(1, 2); bool hit2 = AAttackXY(2, 2); if (hit1 || hit2) { Opponent.Hurt(Fighter.rangen.Next(2, 6)); Opponent.Move(-1); } }
public override void AttackTwo() { bool hit1 = AAttackXY(1, 1); bool hit2 = AAttackXY(2, 3); if (hit1 || hit2) { Opponent.Hurt(Fighter.rangen.Next(3, 7)); Owner.Move(-1); Opponent.Move(-1); } }
public override void AttackThree() { bool move = Owner.Move(3); if (move) { bool hit = AAttackXY(1, 1); if (hit) { Opponent.Move(-3); } } }
public override void AttackFour() { bool move = Owner.Move(1); if (move) { bool hit = AAttackXY(1, 2); if (hit) { Opponent.Hurt(Fighter.rangen.Next(3, 7)); Opponent.Move(3); } } }
private void Btn_Hide_Click(object sender, System.EventArgs e) { btn_Hide.Visible = false; for (int i = 1; i <= 10; i++) { opponent.Move(); txtBx_Description.Text = i + "... "; Application.DoEvents(); System.Threading.Thread.Sleep(200); } txtBx_Description.Text = "Я иду искать!"; Application.DoEvents(); System.Threading.Thread.Sleep(500); btn_goHere.Visible = true; cmbBx_Exits.Visible = true; MoveToANewLocation(livingRoom); }
private void hideButton_Click(object sender, MouseEventArgs e) { hideButton.Visible = false; for (int i = 0; i <= 20; i++) { opponent.Move(); descriptionTextBox.Text = i + "..."; Application.DoEvents(); System.Threading.Thread.Sleep(500); } descriptionTextBox.Text = "I'm coming"; Application.DoEvents(); System.Threading.Thread.Sleep(1000); goHereButton.Visible = true; exitsComboBox.Visible = true; MoveToANewLocation(livingRoom); }
private void hide_Click(object sender, EventArgs e) { opponent = new Opponent(frontYard); for (int i = 0; i < 10; i++) { int theCount = i + 1; description.Text += theCount.ToString() + "... "; Application.DoEvents(); System.Threading.Thread.Sleep(200); opponent.Move(); } description.Text += "Ready or not, here I come! "; Application.DoEvents(); System.Threading.Thread.Sleep(500); RedrawForm(); }