C# Класс SharpBelot.HumanPlayer

Represents a human player.
Наследование: Belot.Player
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AnnounceCombination ( CardCombination combination ) : bool
HumanPlayer ( string name ) : System

Constructor for the class. Creates a new human player with the specified name.

MakeAnnouncement ( AnnouncementManager manager ) : Announcement
PlayCard ( Card card ) : void

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

Метод Описание
PlayCard ( PlayingManager manager ) : void
RaiseAnnounceMaking ( AnnouncementManager manager ) : Announcement

Raises the AnnounceMaking event

RaiseCardCombinationAnnouncing ( CardCombination combination ) : bool

Raises the CardCombinationAnnouncing event

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

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

public AnnounceCombination ( CardCombination combination ) : bool
combination Belot.CardCombination
Результат bool

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

Constructor for the class. Creates a new human player with the specified name.
public HumanPlayer ( string name ) : System
name string The name of the player
Результат System

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

public MakeAnnouncement ( AnnouncementManager manager ) : Announcement
manager Belot.AnnouncementManager
Результат Belot.Announcement

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

public PlayCard ( Card card ) : void
card Belot.Card
Результат void

PlayCard() защищенный Метод

protected PlayCard ( PlayingManager manager ) : void
manager Belot.PlayingManager
Результат void

RaiseAnnounceMaking() защищенный Метод

Raises the AnnounceMaking event
protected RaiseAnnounceMaking ( AnnouncementManager manager ) : Announcement
manager Belot.AnnouncementManager
Результат Belot.Announcement

RaiseCardCombinationAnnouncing() защищенный Метод

Raises the CardCombinationAnnouncing event
protected RaiseCardCombinationAnnouncing ( CardCombination combination ) : bool
combination Belot.CardCombination
Результат bool