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

dmn::Sound Class Reference

Sound interface. More...

#include <sound.h>

Inheritance diagram for dmn::Sound:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Sound ()
 Constructor.

virtual ~Sound ()
 Destructor.

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

virtual void mix_dominoes ()=0
 Mix the dominoes.

virtual void domino_played (ID player, Domino domino, HalfDomino half)=0
 Play a sound when a domino is played.

virtual void player_pass (ID player)=0
 Play a sound when a player passes.


Detailed Description

Sound interface.


Member Function Documentation

virtual bool dmn::Sound::configure Core core  )  [pure 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

Implemented in dmn::SoundAlsa, and dmn::SoundNull.

virtual void dmn::Sound::domino_played ID  player,
Domino  domino,
HalfDomino  half
[pure virtual]
 

Play a sound when a domino is played.

Parameters:
player identificator of the player
domino domino that is shuffled to player
half half of the domino

Implemented in dmn::SoundAlsa, and dmn::SoundNull.

virtual void dmn::Sound::player_pass ID  player  )  [pure virtual]
 

Play a sound when a player passes.

Parameters:
player identificator of the player

Implemented in dmn::SoundAlsa, and dmn::SoundNull.


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