C# Class SharpBelot.HumanPlayer

Represents a human player.
Inheritance: Belot.Player
ファイルを表示 Open project: NikolayIT/BelotGameEngine Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
PlayCard ( PlayingManager manager ) : void
RaiseAnnounceMaking ( AnnouncementManager manager ) : Announcement

Raises the AnnounceMaking event

RaiseCardCombinationAnnouncing ( CardCombination combination ) : bool

Raises the CardCombinationAnnouncing event

Method Details

AnnounceCombination() public method

public AnnounceCombination ( CardCombination combination ) : bool
combination Belot.CardCombination
return bool

HumanPlayer() public method

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
return System

MakeAnnouncement() public method

public MakeAnnouncement ( AnnouncementManager manager ) : Announcement
manager Belot.AnnouncementManager
return Belot.Announcement

PlayCard() public method

public PlayCard ( Card card ) : void
card Belot.Card
return void

PlayCard() protected method

protected PlayCard ( PlayingManager manager ) : void
manager Belot.PlayingManager
return void

RaiseAnnounceMaking() protected method

Raises the AnnounceMaking event
protected RaiseAnnounceMaking ( AnnouncementManager manager ) : Announcement
manager Belot.AnnouncementManager
return Belot.Announcement

RaiseCardCombinationAnnouncing() protected method

Raises the CardCombinationAnnouncing event
protected RaiseCardCombinationAnnouncing ( CardCombination combination ) : bool
combination Belot.CardCombination
return bool