Метод | Описание | |
---|---|---|
AnnounceCombination ( |
The player has a combination in his cards.
|
|
MakeAnnouncement ( |
The player makes an announcement (bidding). Player has to ask the manager if desired announcement is valid. Otherwise returning invalid announcement throws exception.
|
Метод | Описание | |
---|---|---|
PlayCard ( |
The player has to play a card. Player has to ask the manager if desired card is valid. Otherwise returning invalid card throws exception.
|
|
Player ( ) : System |
Constructor for the class.
|
|
Player ( string name ) : System |
Constructor for the class. Creates a new player with the specified name.
|
|
RaiseCardPlayed ( |
Raises the CardsChanged event
|
|
RaiseCardPlaying ( |
Raises the CardPlaying event
|
|
RaiseCardsChanged ( ) : void |
Raises the CardsChanged event
|
Метод | Описание | |
---|---|---|
SetPosition ( PlayerPosition position ) : void |
public abstract AnnounceCombination ( |
||
combination | The combination of cards tha player has | |
Результат | bool |
public abstract MakeAnnouncement ( |
||
manager | Manager that observes bidding rules | |
Результат |
protected abstract PlayCard ( |
||
manager | Manager that observes playing rules | |
Результат | void |
protected Player ( string name ) : System | ||
name | string | The name of the player |
Результат | System |
protected RaiseCardPlayed ( |
||
card | ||
Результат | void |
protected RaiseCardPlaying ( |
||
manager | ||
Результат | void |