#include <hand.h>
Inheritance diagram for dmn::Hand:
Public Member Functions | |
Hand () | |
Constructor. | |
virtual | ~Hand () |
Destructor. | |
virtual bool | configure (Core *core)=0 |
Make all the configuration needed by the module (after have the id). | |
virtual ID | player_who_started ()=0 |
Player who started the hand. | |
virtual void | set_player_who_starts (ID player)=0 |
Set the player who starts playing. | |
virtual ID | turn ()=0 |
Player who plays. | |
virtual int | number_dominoes ()=0 |
Number of dominoes that has the hand. | |
virtual HalfDomino | max_half_value ()=0 |
Maximum half value (the halfs must be 0...max_half_value()). | |
virtual int | dominoes_played (Dominoes *dominoes)=0 |
Return the dominoes played in a hand. | |
virtual int | dominoes_has_player (ID player)=0 |
Return the number of dominoes that a player has. | |
virtual bool | shuffle_tile (ID *player, Domino *domino)=0 |
Shuffling a tile for a player. | |
virtual bool | domino_playable (ID player, Domino domino, HalfDomino half)=0 |
Check if a movement is valid or not. | |
virtual void | set_play_domino (ID player, Domino domino, HalfDomino half)=0 |
A player play a domino. | |
virtual bool | set_player_pass (ID player, Domino *domino)=0 |
A player hasn't got a domino to play, a domino can be gived to him. | |
virtual ID | winner (Points *points)=0 |
Check if the game is finished (there is a winner). | |
virtual bool | is_finished ()=0 |
Check if the hand is finished or not. |
|
Make all the configuration needed by the module (after have the id).
Implemented in dmn::HandDefault. |
|
Check if a movement is valid or not.
Implemented in dmn::HandDefault. |
|
Return the number of dominoes that a player has.
Implemented in dmn::HandDefault. |
|
Return the dominoes played in a hand.
Implemented in dmn::HandDefault. |
|
Check if the hand is finished or not.
Implemented in dmn::HandDefault. |
|
Maximum half value (the halfs must be 0...max_half_value()).
Implemented in dmn::HandDefault. |
|
Number of dominoes that has the hand.
Implemented in dmn::HandDefault. |
|
Player who started the hand.
Implemented in dmn::HandDefault. |
|
A player play a domino.
Implemented in dmn::HandDefault. |
|
A player hasn't got a domino to play, a domino can be gived to him.
Implemented in dmn::HandDefault. |
|
Set the player who starts playing.
Implemented in dmn::HandDefault. |
|
Shuffling a tile for a player.
Implemented in dmn::HandDefault. |
|
Player who plays.
Implemented in dmn::HandDefault. |
|
Check if the game is finished (there is a winner). Couples can draw. In this case, winner will be DMN_ID_NULL
Implemented in dmn::HandDefault. |