C# Class TexasHoldem.UI.Console.ConsoleUiDecorator

Inheritance: TexasHoldem.Logic.Players.PlayerDecorator
ファイルを表示 Open project: NikolayIT/TexasHoldemGameEngine Class Usage Examples

Private Properties

Property Type Description
DrawCommunityCards void
DrawGameBox void
DrawSingleCard void
GetCardColor ConsoleColor
UpdateCommonRow void

Public Methods

Method Description
ConsoleUiDecorator ( IPlayer player, int row, int width, int commonRow ) : System
GetTurn ( TexasHoldem.Logic.Players.GetTurnContext context ) : TexasHoldem.Logic.Players.PlayerAction
StartHand ( StartHandContext context ) : void
StartRound ( TexasHoldem.Logic.Players.StartRoundContext context ) : void

Private Methods

Method Description
DrawCommunityCards ( ) : void
DrawGameBox ( ) : void
DrawSingleCard ( int row, int col, Card card ) : void
GetCardColor ( Card card ) : ConsoleColor
UpdateCommonRow ( int pot ) : void

Method Details

ConsoleUiDecorator() public method

public ConsoleUiDecorator ( IPlayer player, int row, int width, int commonRow ) : System
player IPlayer
row int
width int
commonRow int
return System

GetTurn() public method

public GetTurn ( TexasHoldem.Logic.Players.GetTurnContext context ) : TexasHoldem.Logic.Players.PlayerAction
context TexasHoldem.Logic.Players.GetTurnContext
return TexasHoldem.Logic.Players.PlayerAction

StartHand() public method

public StartHand ( StartHandContext context ) : void
context StartHandContext
return void

StartRound() public method

public StartRound ( TexasHoldem.Logic.Players.StartRoundContext context ) : void
context TexasHoldem.Logic.Players.StartRoundContext
return void