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; } }
public void ClearBet() { // Reset my bet so it's zero MyBet = null; }
public string Name; //The Guy's name #endregion Fields #region Methods public void ClearBet() { // Reset my bet so it's zero MyBet = null; }