36 lines
660 B
C++
36 lines
660 B
C++
#pragma once
|
|
|
|
#include <list>
|
|
|
|
#include "state/state.hpp"
|
|
|
|
namespace sound {
|
|
#if 0
|
|
namespace game {
|
|
class StateUpdateEvent;
|
|
}
|
|
|
|
class SoundEffect {
|
|
public:
|
|
virtual ~SoundEffects()
|
|
{
|
|
}
|
|
|
|
// return false if it can be deleted
|
|
virtual bool advance(float dt) = 0;
|
|
};
|
|
|
|
class SoundEffects {
|
|
public:
|
|
SoundEffects()
|
|
{
|
|
}
|
|
|
|
void handleUpdateEvent(game::StateUpdateEvent *event);
|
|
void advance(float dt, const std::list<game::StateUpdateEvent*> &updates);
|
|
|
|
private:
|
|
std::list<SoundEffect*> m_effects;
|
|
}
|
|
#endif
|
|
}
|