C# Class JustBelot.UI.ConsoleHumanPlayer

Inheritance: IPlayer
Afficher le fichier Open project: NikolayIT/BelotGameEngine Class Usage Examples

Private Properties

Свойство Type Description
AvailableBidsAsString string
Draw void
GameOnCardPlayed void
GameOnPlayerBid void

Méthodes publiques

Méthode Description
AddCards ( IEnumerable cards ) : void
AskForBid ( Contract currentContract, IList allowedBids, IList previousBids ) : BidType
AskForCardsCombinations ( IEnumerable allowedCombinations ) : IEnumerable
ConsoleHumanPlayer ( string name ) : System
EndOfDeal ( JustBelot.Common.DealResult dealResult ) : void
PlayCard ( IList allowedCards, IList currentTrickCards ) : JustBelot.Common.PlayAction
StartNewDeal ( JustBelot.Common.DealInfo dealInfo ) : void
StartNewGame ( JustBelot.Common.GameInfo gameInfo, PlayerPosition position ) : void

Private Methods

Méthode Description
AvailableBidsAsString ( IEnumerable availableBids ) : string
Draw ( ) : void
GameOnCardPlayed ( JustBelot.Common.CardPlayedEventArgs eventArgs ) : void
GameOnPlayerBid ( JustBelot.Common.BidEventArgs bidEventArgs ) : void

Method Details

AddCards() public méthode

public AddCards ( IEnumerable cards ) : void
cards IEnumerable
Résultat void

AskForBid() public méthode

public AskForBid ( Contract currentContract, IList allowedBids, IList previousBids ) : BidType
currentContract Contract
allowedBids IList
previousBids IList
Résultat BidType

AskForCardsCombinations() public méthode

public AskForCardsCombinations ( IEnumerable allowedCombinations ) : IEnumerable
allowedCombinations IEnumerable
Résultat IEnumerable

ConsoleHumanPlayer() public méthode

public ConsoleHumanPlayer ( string name ) : System
name string
Résultat System

EndOfDeal() public méthode

public EndOfDeal ( JustBelot.Common.DealResult dealResult ) : void
dealResult JustBelot.Common.DealResult
Résultat void

PlayCard() public méthode

public PlayCard ( IList allowedCards, IList currentTrickCards ) : JustBelot.Common.PlayAction
allowedCards IList
currentTrickCards IList
Résultat JustBelot.Common.PlayAction

StartNewDeal() public méthode

public StartNewDeal ( JustBelot.Common.DealInfo dealInfo ) : void
dealInfo JustBelot.Common.DealInfo
Résultat void

StartNewGame() public méthode

public StartNewGame ( JustBelot.Common.GameInfo gameInfo, PlayerPosition position ) : void
gameInfo JustBelot.Common.GameInfo
position PlayerPosition
Résultat void