C# Class Belot.BelotGame

Belot Game.
Mostrar archivo Open project: NikolayIT/BelotGameEngine Class Usage Examples

Public Methods

Method Description
BelotGame ( Player south, Player east, Player north, Player west ) : System.Collections.Generic

Creates new belot game

GetPlayer ( PlayerPosition position ) : Player

/// Gets the position of a given player on the table. ///

Gets the player of a given position on the table.

StartGame ( ) : void

Starts a new belot game.

Protected Methods

Method Description
RaiseBiddingCompleted ( Player winner, Announcement announce ) : void

Raises the BiddingCompleted event

RaiseGameCompleted ( Player winner1, Player winner2 ) : void

Raises the DealStarted event

RaiseHandClosed ( Hand hand ) : void

Raises the HandClosed event

Private Methods

Method Description
FinalizeDeal ( ) : void
GetNextPlayer ( Player currentPlayer ) : Player
GetTeamPlayer ( Player currentPlayer ) : Player
HandIsClosed ( Hand hand ) : void
NextDeal ( ) : void
RaiseDealCompleted ( ) : void

Raises the DealCompleted event

RaiseDealStarted ( ) : void

Raises the DealStarted event

Method Details

BelotGame() public method

Creates new belot game
public BelotGame ( Player south, Player east, Player north, Player west ) : System.Collections.Generic
south Player
east Player
north Player
west Player
return System.Collections.Generic

GetPlayer() public method

/// Gets the position of a given player on the table. /// Gets the player of a given position on the table.
public GetPlayer ( PlayerPosition position ) : Player
position PlayerPosition
return Player

RaiseBiddingCompleted() protected method

Raises the BiddingCompleted event
protected RaiseBiddingCompleted ( Player winner, Announcement announce ) : void
winner Player
announce Announcement
return void

RaiseGameCompleted() protected method

Raises the DealStarted event
protected RaiseGameCompleted ( Player winner1, Player winner2 ) : void
winner1 Player
winner2 Player
return void

RaiseHandClosed() protected method

Raises the HandClosed event
protected RaiseHandClosed ( Hand hand ) : void
hand Hand
return void

StartGame() public method

Starts a new belot game.
public StartGame ( ) : void
return void