internal void RaiseDealCompleted( )
{
_hangingPoints += _currentDeal.HangingPoints;
if( _hangingPoints != 0 && _currentDeal.HangingPoints == 0 )
{
// a previous game was hanging and its time to add the points
if( _currentDeal.RoundedNorthSouthPoints > _currentDeal.RoundedEastWestPoints )
{
_currentDeal.AddNorthSouthHangingPoints( _hangingPoints );
}
else
{
_currentDeal.AddEastWesthHangingPoints( _hangingPoints );
}
_hangingPoints = 0;
}
_totalNorthSouthPoints += _currentDeal.RoundedNorthSouthPoints;
_totalEastWestPoints += _currentDeal.RoundedEastWestPoints;
_southPlayer.CardPlayed -= new Player.CardPlayedHandler( _currentDeal.PlayerPlayedCard );
_northPlayer.CardPlayed -= new Player.CardPlayedHandler( _currentDeal.PlayerPlayedCard );
_eastPlayer.CardPlayed -= new Player.CardPlayedHandler( _currentDeal.PlayerPlayedCard );
_westPlayer.CardPlayed -= new Player.CardPlayedHandler( _currentDeal.PlayerPlayedCard );
DealCompleted( );
FinalizeDeal();
}