1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/source/Misc/Sound.hpp
Sandu Liviu Catalin 6ed02d0fd4 Initial commit.
2015-09-30 03:56:11 +03:00

54 lines
2.6 KiB
C++

#ifndef _MISC_SOUND_HPP_
#define _MISC_SOUND_HPP_
// ------------------------------------------------------------------------------------------------
#include "Common.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
class CSound
{
public:
// --------------------------------------------------------------------------------------------
CSound() noexcept;
CSound(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
CSound(const CSound & x) noexcept;
CSound(CSound && x) noexcept;
// --------------------------------------------------------------------------------------------
~CSound();
// --------------------------------------------------------------------------------------------
CSound & operator= (const CSound & x) noexcept;
CSound & operator= (CSound && x) noexcept;
// --------------------------------------------------------------------------------------------
CSound operator+ (const CSound & x) const noexcept;
CSound operator- (const CSound & x) const noexcept;
CSound operator* (const CSound & x) const noexcept;
CSound operator/ (const CSound & x) const noexcept;
// --------------------------------------------------------------------------------------------
bool operator == (const CSound & x) const noexcept;
bool operator != (const CSound & x) const noexcept;
bool operator < (const CSound & x) const noexcept;
bool operator > (const CSound & x) const noexcept;
bool operator <= (const CSound & x) const noexcept;
bool operator >= (const CSound & x) const noexcept;
// --------------------------------------------------------------------------------------------
SQInteger Cmp(const CSound & x) const noexcept;
// --------------------------------------------------------------------------------------------
operator SQInt32 () const noexcept;
operator bool () const noexcept;
// --------------------------------------------------------------------------------------------
SQInt32 GetID() const noexcept;
void SetID(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
void Play() const noexcept;
protected:
// --------------------------------------------------------------------------------------------
SQInt32 m_ID;
};
} // Namespace:: SqMod
#endif // _MISC_SOUND_HPP_