#include <standard.h>
Inheritance diagram for dmn::CoreStandard:
Public Member Functions | |
CoreStandard () | |
Constructor. | |
bool | play (const std::list< PlayerInfo > &teams, const std::string &tournament, const std::string &match, const std::string &game, const std::string &hand, const std::string &display, const std::string &sound) |
Plays domino. | |
bool | classification_of_tournament (ID tournament, std::list< ID > *teams) |
Classification of the tournament. | |
void | score_board_match (ID match, std::list< Score > *score) |
Score board of the match. | |
bool | is_first_hand_of_game (ID game, ID hand) |
Check if the identificator is the first hand of this game. | |
void | score_board_game (ID game, std::list< Score > *score) |
Score board of the game. | |
ID | player_who_started_in_hand (ID hand) |
Player who started the hand. | |
int | number_dominoes_in_hand (ID hand) |
Number of dominoes that has the hand. | |
HalfDomino | max_half_value_in_hand (ID hand) |
Maximum half value in the hand (the halfs must be 0...max_half_value()). | |
int | dominoes_in_hand (ID hand, Dominoes *dominoes) |
Return the dominoes played in a hand. | |
int | dominoes_has_player_in_hand (ID hand, ID player) |
Return the number of dominoes that a player has. | |
bool | domino_playable_in_hand (ID hand, Player *player, ID id, Domino domino, HalfDomino half) |
Check if a movement is valid or not. | |
const std::string | player_name (ID player) |
Player's name. | |
bool | is_player_interactive (ID player) |
Check if a player is interactive or not. |
|
Classification of the tournament.
Implements dmn::Core. |
|
Check if a movement is valid or not.
Implements dmn::Core. |
|
Return the number of dominoes that a player has.
Implements dmn::Core. |
|
Return the dominoes played in a hand.
Implements dmn::Core. |
|
Check if the identificator is the first hand of this game.
Implements dmn::Core. |
|
Check if a player is interactive or not.
Implements dmn::Core. |
|
Maximum half value in the hand (the halfs must be 0...max_half_value()).
Implements dmn::Core. |
|
Number of dominoes that has the hand.
Implements dmn::Core. |
|
Plays domino.
Implements dmn::Core. |
|
Player's name.
Implements dmn::Core. |
|
Player who started the hand.
Implements dmn::Core. |
|
Score board of the game. score must have space for the score board
Implements dmn::Core. |
|
Score board of the match. score must have space for the score board
Implements dmn::Core. |