コード例 #1
0
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);
	}
}
コード例 #2
0
void CSymbolEngineChipAmounts::ResetOnMyTurn() {
  SetBalanceAtStartOfSessionConditionally();
  SetMaxBalanceConditionally();
}