Пример #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;
     }
 }
Пример #2
0
 public void ClearBet()
 {
     // Reset my bet so it's zero
     MyBet = null;
 }
Пример #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;
        }