public bool PlaceBet(int Amount, int Dog) { //Place a new bet and store it in my bet field //Return true if the guy had enough money to bet if (Amount <= Cash && Amount > 0) { MyBet = new Bet { Amount = Amount, Dog = Dog, Bettor = this }; return true; } else { return false; } }
public bool placeBet(int Amount, int Dog) { if(Amount < Cash) { MyBet = new Bet(); MyBet.Better = this; MyBet.Amount = Amount; MyBet.Dog = Dog; return true; } else { return false; } }
public void ClearBet() { MyBet = null; }
public string Name; //The guy's name #endregion Fields #region Methods //Reset my bet so it's zero public void ClearBet() { MyBet = null; UpdateLabels(); }
public Kom(Bet MyBet, Label MaximumBet, int Cash, Label MyLabel) : base(MyBet, MaximumBet, Cash, MyLabel) { }
public Bob(Bet bet, Label MaximumBet, int Cash, Label label) : base(bet, MaximumBet, Cash, label) { }
public bool PlaceBet(int Amount, int Dog) // place bet on dog { MyBet = new Bet(Amount, Dog, this); UpdateLabels(); return(false); }
public void ClearBet() // clearbet function { MyBet = null; }