2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-11-22 20:43:16 +00:00
|
|
|
|
2016-12-22 19:57:21 +00:00
|
|
|
#include "WeaponCommon.hpp"
|
2016-11-22 20:43:16 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CWeaponMode
|
|
|
|
{
|
2016-12-22 19:57:21 +00:00
|
|
|
EWeaponType x0_weaponType = EWeaponType::None;
|
2017-01-27 02:58:21 +00:00
|
|
|
bool x4_24_charged : 1;
|
|
|
|
bool x4_25_comboed : 1;
|
|
|
|
bool x4_26_instantKill : 1;
|
2017-08-29 13:17:52 +00:00
|
|
|
|
2016-11-22 20:43:16 +00:00
|
|
|
public:
|
2017-11-12 05:14:57 +00:00
|
|
|
CWeaponMode() { x4_24_charged = false; x4_25_comboed = false; x4_26_instantKill = false; }
|
2018-11-24 08:09:35 +00:00
|
|
|
CWeaponMode(EWeaponType type, bool charged = false, bool comboed = false, bool instaKill = false)
|
|
|
|
: x0_weaponType(type), x4_24_charged(charged), x4_25_comboed(comboed), x4_26_instantKill(instaKill) {}
|
2018-11-19 01:19:44 +00:00
|
|
|
EWeaponType GetType() const { return x0_weaponType; }
|
2016-11-22 20:43:16 +00:00
|
|
|
|
2017-01-27 02:58:21 +00:00
|
|
|
bool IsCharged() const { return x4_24_charged; }
|
|
|
|
bool IsComboed() const { return x4_25_comboed; }
|
|
|
|
bool IsInstantKill() const { return x4_26_instantKill; }
|
2016-11-22 20:43:16 +00:00
|
|
|
|
2018-11-24 08:09:35 +00:00
|
|
|
static CWeaponMode Invalid() { return CWeaponMode(EWeaponType::None); }
|
|
|
|
static CWeaponMode Phazon() { return CWeaponMode(EWeaponType::Phazon); }
|
|
|
|
static CWeaponMode Plasma() { return CWeaponMode(EWeaponType::Plasma); }
|
|
|
|
static CWeaponMode Wave() { return CWeaponMode(EWeaponType::Wave); }
|
|
|
|
static CWeaponMode BoostBall() { return CWeaponMode(EWeaponType::BoostBall); }
|
|
|
|
static CWeaponMode Ice() { return CWeaponMode(EWeaponType::Ice); }
|
|
|
|
static CWeaponMode Power() { return CWeaponMode(EWeaponType::Power); }
|
|
|
|
static CWeaponMode Bomb() { return CWeaponMode(EWeaponType::Bomb); }
|
|
|
|
static CWeaponMode PowerBomb() { return CWeaponMode(EWeaponType::PowerBomb); }
|
2016-11-22 20:43:16 +00:00
|
|
|
};
|
|
|
|
}
|