public void CheckGetOutOfJail(ref Label lblMsg, MonopolyEmpires Me) { if (isInJail) { if (lst_ChanceCardName.Contains("GetOutOfJailFree")) { if (MessageBox.Show("Would you like to use Chance Card to get out of jail...??", "Get out Of jail", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { Me.card.PlayChanceCard(Me, "GetOutOfJailFree"); Me.NextTurn(); return; } } if (lst_EmpireCardName.Contains("GetOutOfJailForFree")) { if (MessageBox.Show("Would you like to use Empire Card to get out of jail...??", "Get out Of jail", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { Me.card.PlayEmpireCard(Me, "GetOutOfJailForFree"); Me.NextTurn(); return; } } if (MessageBox.Show("Would you like to pay $100 to bank to get out of jail...??", "Get out Of jail", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { amount -= 100; isInJail = false; Me.NextTurn(); return; } if (MessageBox.Show("Want to roll dice to get out of jail...??", "Get out of jail", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { lblMsg.Text = "Roll Double (user has three chance to roll the dice)"; lblMsg.Visible = true; } } }
public void Action(MonopolyEmpires Me) { Me.NextTurn(); }