File indexing completed on 2024-02-25 04:08:49

0001 /*
0002     SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef AUDIOPLAYER_H
0008 #define AUDIOPLAYER_H
0009 
0010 #include "sea.h"
0011 
0012 class KGameSound;
0013 
0014 class AudioPlayer : public QObject
0015 {
0016 Q_OBJECT
0017 
0018 public:
0019     explicit AudioPlayer(QObject* parent);
0020 
0021     void play(Sea::Player player, const HitInfo& info);
0022     void setActive(bool value);
0023 
0024 private:
0025     KGameSound *m_sink;
0026     KGameSound *m_shootA;
0027     KGameSound *m_shootB;
0028     KGameSound *m_shootWater;
0029 };
0030 
0031 #endif // AUDIOPLAYER_H
0032