SVN_SILENT made messages (.desktop file)
[kdegames.git] / kollision / audioplayer.h
blob9f7ab6a94c488bf89ad80284f265217998d4da86
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef AUDIOPLAYER_H
11 #define AUDIOPLAYER_H
13 #include <QMap>
15 namespace Phonon { class MediaObject; }
17 class AudioPlayer
19 Phonon::MediaObject* m_media;
20 QMap<int, QString> m_sounds;
21 public:
22 enum Sound {
23 HIT_WALL,
24 YOU_LOSE,
25 BALL_LEAVING,
26 START
29 AudioPlayer();
30 ~AudioPlayer();
32 void play(Sound sound);
33 void setActive(bool active);
36 #endif // AUDIOPLAYER_H