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

dmn::PlayerStupid Class Reference

Stupid Player. More...

#include <stupid.h>

Inheritance diagram for dmn::PlayerStupid:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PlayerStupid ()
 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

Stupid Player.

He doesn't think what domino to play... only does it!


Member Function Documentation

bool dmn::PlayerStupid::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::PlayerStupid::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::PlayerStupid::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::PlayerStupid::name  )  [virtual]
 

Player's name.

Returns:
the name

Implements dmn::Player.

void dmn::PlayerStupid::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::PlayerStupid::set_name std::string  name  )  [virtual]
 

Set the player's name.

Parameters:
name player's name

Implements dmn::Player.

void dmn::PlayerStupid::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::PlayerStupid::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:13 2003 for dmn by doxygen 1.3.4