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

53 lines
2.8 KiB
C++

#ifndef _MISC_VEHICLE_IMMUNITY_HPP_
#define _MISC_VEHICLE_IMMUNITY_HPP_
// ------------------------------------------------------------------------------------------------
#include "Common.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
struct CVehicleImmunity
{
// --------------------------------------------------------------------------------------------
CVehicleImmunity() noexcept;
CVehicleImmunity(SQInt32 flags) noexcept;
// --------------------------------------------------------------------------------------------
CVehicleImmunity(const CVehicleImmunity & x) noexcept;
CVehicleImmunity(CVehicleImmunity && x) noexcept;
// --------------------------------------------------------------------------------------------
~CVehicleImmunity();
// --------------------------------------------------------------------------------------------
CVehicleImmunity & operator= (const CVehicleImmunity & x) noexcept;
CVehicleImmunity & operator= (CVehicleImmunity && x) noexcept;
// --------------------------------------------------------------------------------------------
bool operator == (const CVehicleImmunity & x) const noexcept;
bool operator != (const CVehicleImmunity & x) const noexcept;
bool operator < (const CVehicleImmunity & x) const noexcept;
bool operator > (const CVehicleImmunity & x) const noexcept;
bool operator <= (const CVehicleImmunity & x) const noexcept;
bool operator >= (const CVehicleImmunity & x) const noexcept;
// --------------------------------------------------------------------------------------------
SQInteger Cmp(const CVehicleImmunity & x) const noexcept;
// --------------------------------------------------------------------------------------------
operator SQInt32 () const noexcept;
operator bool () const noexcept;
// --------------------------------------------------------------------------------------------
SQInt32 GetFlags() const noexcept;
void SetFlags(SQInt32 flags) noexcept;
// --------------------------------------------------------------------------------------------
CVehicleImmunity & SetnGet(SQInt32 flags) noexcept;
// --------------------------------------------------------------------------------------------
void Apply(const CVehicle & vehicle) const noexcept;
// --------------------------------------------------------------------------------------------
void EnableAll() noexcept;
void DisableAll() noexcept;
protected:
// --------------------------------------------------------------------------------------------
SQInt32 m_Flags;
};
} // Namespace:: SqMod
#endif // _MISC_VEHICLE_IMMUNITY_HPP_