implement sounds when blinds increases (ticket #83)

This commit is contained in:
doitux committed 2011-12-25 13:34:06 +00:00
1 parent 3aa998070f
commit f294834d00
9 files changed
+162 -110

No files matched your search

+2
View File
@@ -43,6 +43,7 @@
#include "configfile.h"
#include "sdlplayer.h"
#include "soundevents.h"
#include "gametablestylereader.h"
#include "carddeckstylereader.h"
#include <gamedata.h>
@@ -76,6 +77,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
//Sound
mySDLPlayer = new SDLPlayer(myConfig);
mySoundEventHandler = new SoundEvents(myConfig, this);
// Init game table style
myGameTableStyle = new GameTableStyleReader(myConfig, this);
+6
View File
@@ -50,6 +50,7 @@ class GameTableStyleReader;
class CardDeckStyleReader;
class SDLPlayer;
class SoundEvents;
enum SeatState { SEAT_UNDEFINED, SEAT_ACTIVE, SEAT_AUTOFOLD, SEAT_STAYONTABLE, SEAT_CLEAR };
@@ -63,9 +64,13 @@ public:
~gameTableImpl();
boost::shared_ptr<Session> getSession();
SDLPlayer* getMySDLPlayer() const {
return mySDLPlayer;
}
SoundEvents* getMySoundEventHandler() const{
return mySoundEventHandler;
}
ChatTools* getMyChat() const {
return myChat;
}
@@ -405,6 +410,7 @@ private:
//Sound
SDLPlayer *mySDLPlayer;
SoundEvents *mySoundEventHandler;
QString myAppDataPath;
int distributePotAnimCounter;