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