C# Class JustBelot.UI.ConsoleHumanPlayer

Inheritance: IPlayer
ファイルを表示 Open project: NikolayIT/BelotGameEngine Class Usage Examples

Private Properties

Property Type Description
AvailableBidsAsString string
Draw void
GameOnCardPlayed void
GameOnPlayerBid void

Public Methods

Method 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

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

Method Details

AddCards() public method

public AddCards ( IEnumerable cards ) : void
cards IEnumerable
return void

AskForBid() public method

public AskForBid ( Contract currentContract, IList allowedBids, IList previousBids ) : BidType
currentContract Contract
allowedBids IList
previousBids IList
return BidType

AskForCardsCombinations() public method

public AskForCardsCombinations ( IEnumerable allowedCombinations ) : IEnumerable
allowedCombinations IEnumerable
return IEnumerable

ConsoleHumanPlayer() public method

public ConsoleHumanPlayer ( string name ) : System
name string
return System

EndOfDeal() public method

public EndOfDeal ( JustBelot.Common.DealResult dealResult ) : void
dealResult JustBelot.Common.DealResult
return void

PlayCard() public method

public PlayCard ( IList allowedCards, IList currentTrickCards ) : JustBelot.Common.PlayAction
allowedCards IList
currentTrickCards IList
return JustBelot.Common.PlayAction

StartNewDeal() public method

public StartNewDeal ( JustBelot.Common.DealInfo dealInfo ) : void
dealInfo JustBelot.Common.DealInfo
return void

StartNewGame() public method

public StartNewGame ( JustBelot.Common.GameInfo gameInfo, PlayerPosition position ) : void
gameInfo JustBelot.Common.GameInfo
position PlayerPosition
return void