C# Class JustBelot.Common.DealManager

Responsible for one deal (one particular allocation of 32 cards to the four players including the bidding, the play of the cards and the scoring based on those cards.
Datei anzeigen Open project: NikolayIT/BelotGameEngine Class Usage Examples

Public Methods

Method Description
DealManager ( JustBelot.Common.GameManager game ) : System
PlayDeal ( ) : JustBelot.Common.DealResult

Private Methods

Method Description
AskForCardCombinations ( IPlayer player ) : IEnumerable
Bidding ( ) : JustBelot.Common.Contract
DealCardsToAllPlayers ( int cardsCount ) : void
PlayCard ( IPlayer player, JustBelot.Common.Contract contract, IList currentTrickCards ) : JustBelot.Common.PlayAction
PlayCards ( JustBelot.Common.Contract contract ) : void
PrepareDealResult ( JustBelot.Common.Contract contract ) : JustBelot.Common.DealResult

Method Details

DealManager() public method

public DealManager ( JustBelot.Common.GameManager game ) : System
game JustBelot.Common.GameManager
return System

PlayDeal() public method

public PlayDeal ( ) : JustBelot.Common.DealResult
return JustBelot.Common.DealResult