C# Class Belot.AnnouncementManager

A manager that observes bidding rules.
Datei anzeigen Open project: NikolayIT/BelotGameEngine Class Usage Examples

Private Properties

Property Type Description
Add void
AnnouncementManager System
GetLastBidder Player
IsLastValidBidByTeam bool

Public Methods

Method 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

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

Gets all announces in current deal
public GetAllAnnouncements ( ) : Player>.IDictionary
return Player>.IDictionary

GetLastValidAnnouncement() public method

Gets the last valid announcement
public GetLastValidAnnouncement ( ) : Announcement
return Announcement

IsValid() public method

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

IsValid() public method

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