C# Class Belot.AnnouncementManager

A manager that observes bidding rules.
Afficher le fichier Open project: NikolayIT/BelotGameEngine Class Usage Examples

Private Properties

Свойство Type Description
Add void
AnnouncementManager System
GetLastBidder Player
IsLastValidBidByTeam bool

Méthodes publiques

Méthode Description
GetAllAnnouncements ( ) : Player>.IDictionary

Gets all announces in current deal

GetLastValidAnnouncement ( ) : Announcement

Gets the last valid announcement

IsValid ( Player player, Announcement announce ) : bool

If announcement made by this player is valid according to game rules

IsValid ( Player player, AnnouncementTypeEnum type, bool isDoubled, bool isRedoubled ) : bool

If announcement made by this player is valid according to game rules

Private Methods

Méthode Description
Add ( Player player, Announcement announce ) : void

Stores and announcement made by a player

AnnouncementManager ( ) : System

Constructor for the class

GetLastBidder ( ) : Player

Gets the player who made the last valid announcement

IsLastValidBidByTeam ( Player player ) : bool

Method Details

GetAllAnnouncements() public méthode

Gets all announces in current deal
public GetAllAnnouncements ( ) : Player>.IDictionary
Résultat Player>.IDictionary

GetLastValidAnnouncement() public méthode

Gets the last valid announcement
public GetLastValidAnnouncement ( ) : Announcement
Résultat Announcement

IsValid() public méthode

If announcement made by this player is valid according to game rules
public IsValid ( Player player, Announcement announce ) : bool
player Player
announce Announcement
Résultat bool

IsValid() public méthode

If announcement made by this player is valid according to game rules
public IsValid ( Player player, AnnouncementTypeEnum type, bool isDoubled, bool isRedoubled ) : bool
player Player
type AnnouncementTypeEnum
isDoubled bool
isRedoubled bool
Résultat bool