Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dmn::PlayerQt Class Reference

Player with Qt display. More...

#include <qt.h>

Inheritance diagram for dmn::PlayerQt:

Inheritance graph
[legend]
Collaboration diagram for dmn::PlayerQt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PlayerQt ()
 Constructor.

bool configure (Core *core)
 Make all the configuration needed by the module (after have the id).

void set_name (std::string name)
 Set the player's name.

std::string name ()
 Player's name.

bool is_interactive ()
 Check if the player is interactive or not.

void set_shuffled_tile (Domino domino)
 Shuffle a tile to a player.

bool domino_to_play (Domino *domino, HalfDomino *half)
 Domino played by the player (played by the module).

void set_domino_played (ID id, Domino domino, HalfDomino half)
 Domino played by other player (no by the module).

void set_player_pass (ID id, bool domino_shuffled)
 A player passes (haven't domino to play).


Detailed Description

Player with Qt display.


Member Function Documentation

bool dmn::PlayerQt::configure Core core  )  [virtual]
 

Make all the configuration needed by the module (after have the id).

Parameters:
core core module
Returns:
true if all was ok, else false

Implements dmn::Player.

bool dmn::PlayerQt::domino_to_play Domino domino,
HalfDomino half
[virtual]
 

Domino played by the player (played by the module).

Parameters:
domino domino shuffled
half side of the domino
Returns:
true if the player pass or false if plays

Implements dmn::Player.

bool dmn::PlayerQt::is_interactive  )  [virtual]
 

Check if the player is interactive or not.

Returns:
true if it's interative, else false

Implements dmn::Player.

std::string dmn::PlayerQt::name  )  [virtual]
 

Player's name.

Returns:
the name

Implements dmn::Player.

void dmn::PlayerQt::set_domino_played ID  id,
Domino  domino,
HalfDomino  half
[virtual]
 

Domino played by other player (no by the module).

Parameters:
id identificator of the player
domino domino shuffled
half side of the domino

Implements dmn::Player.

void dmn::PlayerQt::set_name std::string  name  )  [virtual]
 

Set the player's name.

Parameters:
name player's name

Implements dmn::Player.

void dmn::PlayerQt::set_player_pass ID  id,
bool  domino_shuffled
[virtual]
 

A player passes (haven't domino to play).

Parameters:
id identificator of the player
domino_shuffled true if a domino is shuffled to the player or false if not

Implements dmn::Player.

void dmn::PlayerQt::set_shuffled_tile Domino  domino  )  [virtual]
 

Shuffle a tile to a player.

Parameters:
domino domino shuffled

Implements dmn::Player.


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:56:09 2003 for dmn by doxygen 1.3.4