Esempio n. 1
0
 public override void Raise(Pot pot, int amount, bool isMinimumBet)
 {
     string text;
     amount = (int)Mathf.Min(amount, pot.GetMaximumFairRaise(this));
     if (amount == 0){
         Call(pot);
     } else {
         if (isMinimumBet){
             text = "Starting bets " + amount + ", okay?";
         } else {
             text = "I raise by " + amount + "!";
         }
         int cost = pot.Raise(this, amount);
         QueueAction(new BetAction(actor, text, pot), true);
         stack -= cost;
         busy = true;
     }
 }