Add fly animations

This commit is contained in:
Bram Verhulst
2024-05-29 00:00:29 +02:00
parent 3c83e566dd
commit e1165fdcb4
31 changed files with 580 additions and 157 deletions

View File

@@ -4,7 +4,7 @@ class Mix_Chunk;
class SoundEffect final
{
public:
explicit SoundEffect( const std::string& path );
explicit SoundEffect( const std::string& path, int channel = -1);
~SoundEffect( );
SoundEffect(const SoundEffect& other) = delete;
SoundEffect& operator=(const SoundEffect& rhs) = delete;
@@ -12,13 +12,15 @@ public:
SoundEffect& operator=( SoundEffect&& rhs) = delete;
bool IsLoaded( ) const;
bool Play( const int loops ) const;
void Play( const int loops ) const;
void SetVolume( const int value );
int GetVolume( ) const;
int GetVolume( ) const;
void Stop( ) const;
static void StopAll( );
static void PauseAll( );
static void ResumeAll( );
private:
Mix_Chunk* m_pMixChunk;
int m_Channel;
};