quest-wizard/models/events/qw_abstractsoundevent.h

32 lines
723 B
C
Raw Normal View History

2023-02-09 08:41:24 -05:00
#ifndef QUESTABSTRACTSOUNDEVENT_H
#define QUESTABSTRACTSOUNDEVENT_H
#include "features/qw_soundplayer.h"
#include "qw_abstractevent.h"
/* QWAbstractSoundEvent
* Interface for all in-game audio events. */
class QWAbstractSoundEvent : public QWAbstractEvent
{
protected:
QWSoundPlayer *ptr_soundplayer;
public:
QWAbstractSoundEvent();
virtual ~QWAbstractSoundEvent() override = 0;
virtual void execute() override = 0;
////////////////////////
void setSoundPlayer(QWSoundPlayer *const soundplayer) noexcept;
QWSoundPlayer *soundPlayer() const noexcept;
////////////////////////
virtual void writeToJson(QJsonObject &savejson) override = 0;
};
#endif // QUESTABSTRACTSOUNDEVENT_H