C# Класс Belot.AnnouncementManager

A manager that observes bidding rules.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Add void
AnnouncementManager System
GetLastBidder Player
IsLastValidBidByTeam bool

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

Метод Описание
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

Приватные методы

Метод Описание
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

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

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

Gets all announces in current deal
public GetAllAnnouncements ( ) : Player>.IDictionary
Результат Player>.IDictionary

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

Gets the last valid announcement
public GetLastValidAnnouncement ( ) : Announcement
Результат Announcement

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

If announcement made by this player is valid according to game rules
public IsValid ( Player player, Announcement announce ) : bool
player Player
announce Announcement
Результат bool

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

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
Результат bool