1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00
SqMod/source/Misc/Radio.hpp

56 lines
2.7 KiB
C++
Raw Normal View History

2015-09-30 02:56:11 +02:00
#ifndef _MISC_RADIO_HPP_
#define _MISC_RADIO_HPP_
// ------------------------------------------------------------------------------------------------
#include "Common.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
class CRadio
{
public:
// --------------------------------------------------------------------------------------------
CRadio() noexcept;
CRadio(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
CRadio(const CRadio & x) noexcept;
CRadio(CRadio && x) noexcept;
// --------------------------------------------------------------------------------------------
~CRadio();
// --------------------------------------------------------------------------------------------
CRadio & operator= (const CRadio & x) noexcept;
CRadio & operator= (CRadio && x) noexcept;
// --------------------------------------------------------------------------------------------
CRadio operator+ (const CRadio & x) const noexcept;
CRadio operator- (const CRadio & x) const noexcept;
CRadio operator* (const CRadio & x) const noexcept;
CRadio operator/ (const CRadio & x) const noexcept;
// --------------------------------------------------------------------------------------------
bool operator == (const CRadio & x) const noexcept;
bool operator != (const CRadio & x) const noexcept;
bool operator < (const CRadio & x) const noexcept;
bool operator > (const CRadio & x) const noexcept;
bool operator <= (const CRadio & x) const noexcept;
bool operator >= (const CRadio & x) const noexcept;
// --------------------------------------------------------------------------------------------
SQInteger Cmp(const CRadio & x) const noexcept;
// --------------------------------------------------------------------------------------------
operator SQInt32 () const noexcept;
operator bool () const noexcept;
// --------------------------------------------------------------------------------------------
SQInt32 GetID() const noexcept;
void SetID(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
CRadio & SetnGet(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
void Apply(const CVehicle & vehicle) const noexcept;
protected:
// --------------------------------------------------------------------------------------------
SQInt32 m_ID;
};
} // Namespace:: SqMod
#endif // _MISC_RADIO_HPP_