C# Class AIPlayers.AIPlayer

Inheritance: Belot.ComputerPlayer
Show file Open project: NikolayIT/BelotGameEngine

Public Methods

Method Description
AIPlayer ( string name ) : System

Constructor for the class. Creates a new computer player with the specified name.

AnnounceCombination ( CardCombination combination ) : bool
MakeAnnouncement ( AnnouncementManager manager ) : Announcement

Protected Methods

Method Description
PlayCard ( PlayingManager manager ) : void

Private Methods

Method Description
AIPlayer ( ) : System
EvalutePointsOnPartnerAnnounce ( Card targetCard ) : int
EvalutePointsOnRemaining ( Card targetCard ) : int
EvalutePointsOnTrumpColor ( Card targetCard ) : int
FindZeroEvaluatedColor ( IList validCards, IList &zeroEvaluatedColors ) : bool
GetCardColor ( AnnouncementTypeEnum type ) : CardColor
GetCurrentMaxCardInColor ( CardColor color ) : Card
GetDistance ( Card card, Card maxCard, Announcement announce ) : int
GetDistanceNoTrumps ( Card card, Card maxCard ) : int
GetDistanceTrumps ( Card card, Card maxCard ) : int
GetPlayingColor ( ) : CardColor
GetTrumpColor ( ) : CardColor
GetValidCards ( ) : IList
IsCurrentMaxCardInPlayingColor ( Card targetCard ) : bool

Method Details

AIPlayer() public method

Constructor for the class. Creates a new computer player with the specified name.
public AIPlayer ( string name ) : System
name string The name of the player
return System

AnnounceCombination() public method

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

MakeAnnouncement() public method

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

PlayCard() protected method

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