Beispiel #1
0
        public bool betting(int amount, int bittingJeep)
        {
            this.currentBet = new PlaceBet()
            {
                BetAmount = amount, jet = bittingJeep
            };

            if (amount <= balance)
            {
                balance      -= amount;
                activity.Text = this.name + " has placed $" + amount + " on Knight #" + bittingJeep;
                this.UpdateActivity();
                return(true);
            }
            else
            {
                MessageBox.Show(this.name + " doesn't have enough money to cover for the bet!");
                this.currentBet = null;
                return(false);
            }
        }
Beispiel #2
0
 public void ResetStats()
 {
     currentBet    = null;
     activity.Text = name + " has't placed a bet.";
 }