C# Класс Belot.BelotGame

Belot Game.
Показать файл Открыть проект Примеры использования класса

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

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

Защищенные методы

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

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

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

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

BelotGame() публичный метод

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
Результат System.Collections.Generic

GetPlayer() публичный метод

/// 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
Результат Player

RaiseBiddingCompleted() защищенный метод

Raises the BiddingCompleted event
protected RaiseBiddingCompleted ( Player winner, Announcement announce ) : void
winner Player
announce Announcement
Результат void

RaiseGameCompleted() защищенный метод

Raises the DealStarted event
protected RaiseGameCompleted ( Player winner1, Player winner2 ) : void
winner1 Player
winner2 Player
Результат void

RaiseHandClosed() защищенный метод

Raises the HandClosed event
protected RaiseHandClosed ( Hand hand ) : void
hand Hand
Результат void

StartGame() публичный метод

Starts a new belot game.
public StartGame ( ) : void
Результат void