void CSymbolEngineChipAmounts::SetBalance(const int player, const double d) { assert(player >= 0); assert(player < k_max_number_of_players); _balance[player] = d; if (player == USER_CHAIR) { SetMaxBalanceConditionally(d); SetBalanceAtStartOfSessionConditionally(d); } }
void CSymbolEngineChipAmounts::ResetOnMyTurn() { SetBalanceAtStartOfSessionConditionally(); SetMaxBalanceConditionally(); }