C# Class SharpBelot.HumanPlayer

Represents a human player.
Inheritance: Belot.Player
Afficher le fichier Open project: NikolayIT/BelotGameEngine Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public AnnounceCombination ( CardCombination combination ) : bool
combination Belot.CardCombination
Résultat bool

HumanPlayer() public méthode

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
Résultat System

MakeAnnouncement() public méthode

public MakeAnnouncement ( AnnouncementManager manager ) : Announcement
manager Belot.AnnouncementManager
Résultat Belot.Announcement

PlayCard() public méthode

public PlayCard ( Card card ) : void
card Belot.Card
Résultat void

PlayCard() protected méthode

protected PlayCard ( PlayingManager manager ) : void
manager Belot.PlayingManager
Résultat void

RaiseAnnounceMaking() protected méthode

Raises the AnnounceMaking event
protected RaiseAnnounceMaking ( AnnouncementManager manager ) : Announcement
manager Belot.AnnouncementManager
Résultat Belot.Announcement

RaiseCardCombinationAnnouncing() protected méthode

Raises the CardCombinationAnnouncing event
protected RaiseCardCombinationAnnouncing ( CardCombination combination ) : bool
combination Belot.CardCombination
Résultat bool