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