Exemplo n.º 1
0
 public bool PlaceBet(int BetAmount, int DogNum)
 {
     //place a new bet and store it in my bet field
     MyBet = new Bet();
     // return true if the guy had enough money to bet
     if (Cash >= BetAmount)
     {
         MyBet.Amount = BetAmount;
         MyBet.Dog = DogNum;
         MyBet.Bettor = this;
         return true;
     }
     else
     {
         MyBet.Amount = 0;
         MyBet.Dog = DogNum;
         MyBet.Bettor = this;
         return false;
     }
 }
Exemplo n.º 2
0
 public void ClearBet()
 {
     // Reset my bet so it's zero
     MyBet = null;
 }
Exemplo n.º 3
0
        public string Name; //The Guy's name

        #endregion Fields

        #region Methods

        public void ClearBet()
        {
            // Reset my bet so it's zero
            MyBet = null;
        }