2016-11-22 20:43:16 +00:00
|
|
|
#ifndef __URDE_CWEAPONMODE_HPP__
|
|
|
|
#define __URDE_CWEAPONMODE_HPP__
|
|
|
|
|
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;
|
2016-11-22 20:43:16 +00:00
|
|
|
public:
|
2016-12-22 19:57:21 +00:00
|
|
|
CWeaponMode() = default;
|
2017-01-27 02:58:21 +00:00
|
|
|
CWeaponMode(EWeaponType, bool charged = false, bool comboed = false, bool instaKill = false);
|
2016-11-22 20:43:16 +00:00
|
|
|
EWeaponType GetType() const;
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
static CWeaponMode Invalid();
|
|
|
|
static CWeaponMode Phazon();
|
|
|
|
static CWeaponMode Plasma();
|
|
|
|
static CWeaponMode Wave();
|
|
|
|
static CWeaponMode BoostBall();
|
|
|
|
static CWeaponMode Ice();
|
|
|
|
static CWeaponMode Power();
|
|
|
|
static CWeaponMode Bomb();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __URDE_CWEAPONMODE_HPP__
|