C# Class Belot.Deal

A deal during the game.
Show file Open project: NikolayIT/BelotGameEngine Class Usage Examples

Private Properties

Property Type Description
AddBelotCombination void
AddDoublingPoints void
AddEastWesthHangingPoints void
AddLastTenPoints void
AddNorthSouthHangingPoints void
CalculatePoints void
CountDealPoints void
Deal System
DealCards void
DealFirstCards void
DealRestCards void
EnterBiddingState Player
EnterPlayingState void
FindBiggestEqualCombinationHolder Player
FindBiggestSequentialCombinationHolder Player
GetCombinationPoints int
InitCards CardsCollection
NextHand void
PlayerHasTurn void
PlayerPlayedCard void
RoundPoints int

Private Methods

Method Description
AddBelotCombination ( Player player, BelotCombination combination ) : void
AddDoublingPoints ( int &winnersPoints, int &losersPoints, int winnersExtraPoints, int losersExtraPoints ) : void
AddEastWesthHangingPoints ( int points ) : void
AddLastTenPoints ( Player winner ) : void
AddNorthSouthHangingPoints ( int points ) : void
CalculatePoints ( Hand lastHand ) : void
CountDealPoints ( ) : void
Deal ( BelotGame game, Player firstPlayer ) : System

Constructor for the class. Creates a new deal during the current game.

DealCards ( int count ) : void
DealFirstCards ( ) : void
DealRestCards ( ) : void
EnterBiddingState ( ) : Player
EnterPlayingState ( ) : void
FindBiggestEqualCombinationHolder ( ) : Player
FindBiggestSequentialCombinationHolder ( ) : Player
GetCombinationPoints ( Player winner, ListDictionary map ) : int
InitCards ( ) : CardsCollection
NextHand ( ) : void
PlayerHasTurn ( Player player ) : void
PlayerPlayedCard ( Player player, Card playedCard ) : void
RoundPoints ( int points ) : int