Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
SetPosition ( PlayerPosition position ) : void |
public abstract AnnounceCombination ( |
||
combination | The combination of cards tha player has | |
return | bool |
public abstract MakeAnnouncement ( |
||
manager | Manager that observes bidding rules | |
return |
protected abstract PlayCard ( |
||
manager | Manager that observes playing rules | |
return | void |
protected Player ( string name ) : System | ||
name | string | The name of the player |
return | System |
protected RaiseCardPlayed ( |
||
card | ||
return | void |
protected RaiseCardPlaying ( |
||
manager | ||
return | void |