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

147 lines
4.3 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 {
/* ------------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
class CRadio
{
public:
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio();
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio(SQInt32 id);
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio(const CRadio & x);
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio(CRadio && x);
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
~CRadio();
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio & operator= (const CRadio & x);
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio & operator= (CRadio && x);
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio operator+ (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio operator- (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio operator* (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio operator/ (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator == (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator != (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator < (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator > (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator <= (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator >= (const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
SQInteger Cmp(const CRadio & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
operator SQInt32 () const;
/* --------------------------------------------------------------------------------------------
* ...
*/
operator bool () const;
/* --------------------------------------------------------------------------------------------
* ...
*/
SQInt32 GetID() const;
/* --------------------------------------------------------------------------------------------
* ...
*/
void SetID(SQInt32 id);
/* --------------------------------------------------------------------------------------------
* ...
*/
CRadio & SetnGet(SQInt32 id);
/* --------------------------------------------------------------------------------------------
* ...
*/
void Apply(const CVehicle & vehicle) const;
2015-09-30 02:56:11 +02:00
protected:
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
SQInt32 m_ID;
};
} // Namespace:: SqMod
#endif // _MISC_RADIO_HPP_