2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _MISC_VEHICLE_IMMUNITY_HPP_
|
|
|
|
#define _MISC_VEHICLE_IMMUNITY_HPP_
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "Common.hpp"
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2015-10-29 21:59:35 +01:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
struct CVehicleImmunity
|
|
|
|
{
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity() noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity(SQInt32 flags) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity(const CVehicleImmunity & x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity(CVehicleImmunity && x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
~CVehicleImmunity();
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity & operator= (const CVehicleImmunity & x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity & operator= (CVehicleImmunity && x) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator == (const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator != (const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator < (const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator > (const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator <= (const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
bool operator >= (const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
SQInteger Cmp(const CVehicleImmunity & x) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
operator SQInt32 () const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
operator bool () const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
SQInt32 GetFlags() const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
void SetFlags(SQInt32 flags) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
CVehicleImmunity & SetnGet(SQInt32 flags) noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
void Apply(const CVehicle & vehicle) const noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
void EnableAll() noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
void DisableAll() noexcept;
|
2015-10-29 21:59:35 +01:00
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
protected:
|
2015-10-29 21:59:35 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* ...
|
|
|
|
*/
|
2015-09-30 02:56:11 +02:00
|
|
|
SQInt32 m_Flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
|
|
|
#endif // _MISC_VEHICLE_IMMUNITY_HPP_
|