C# Класс JustBelot.UI.ConsoleHumanPlayer

Наследование: IPlayer
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AvailableBidsAsString string
Draw void
GameOnCardPlayed void
GameOnPlayerBid void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AvailableBidsAsString ( IEnumerable availableBids ) : string
Draw ( ) : void
GameOnCardPlayed ( JustBelot.Common.CardPlayedEventArgs eventArgs ) : void
GameOnPlayerBid ( JustBelot.Common.BidEventArgs bidEventArgs ) : void

Описание методов

AddCards() публичный Метод

public AddCards ( IEnumerable cards ) : void
cards IEnumerable
Результат void

AskForBid() публичный Метод

public AskForBid ( Contract currentContract, IList allowedBids, IList previousBids ) : BidType
currentContract Contract
allowedBids IList
previousBids IList
Результат BidType

AskForCardsCombinations() публичный Метод

public AskForCardsCombinations ( IEnumerable allowedCombinations ) : IEnumerable
allowedCombinations IEnumerable
Результат IEnumerable

ConsoleHumanPlayer() публичный Метод

public ConsoleHumanPlayer ( string name ) : System
name string
Результат System

EndOfDeal() публичный Метод

public EndOfDeal ( JustBelot.Common.DealResult dealResult ) : void
dealResult JustBelot.Common.DealResult
Результат void

PlayCard() публичный Метод

public PlayCard ( IList allowedCards, IList currentTrickCards ) : JustBelot.Common.PlayAction
allowedCards IList
currentTrickCards IList
Результат JustBelot.Common.PlayAction

StartNewDeal() публичный Метод

public StartNewDeal ( JustBelot.Common.DealInfo dealInfo ) : void
dealInfo JustBelot.Common.DealInfo
Результат void

StartNewGame() публичный Метод

public StartNewGame ( JustBelot.Common.GameInfo gameInfo, PlayerPosition position ) : void
gameInfo JustBelot.Common.GameInfo
position PlayerPosition
Результат void