public bool betting(int amount, int bittingVampire) { this.currentBet = new Betting() { BetAmount = amount, vampire = bittingVampire }; if (amount <= balance) { balance -= amount; activity.Text = this.name + " has placed $" + amount + " on Vampire #" + bittingVampire; this.UpdateActivity(); return(true); } else { MessageBox.Show(this.name + " doesn't have enough money to cover for the bet!"); this.currentBet = null; return(false); } }
public void ResetStats() { currentBet = null; activity.Text = name + " has't placed a bet."; }