metaforce/Runtime/Weapon/CWeaponMode.hpp

42 lines
906 B
C++
Raw Normal View History

2016-11-22 20:43:16 +00:00
#ifndef __URDE_CWEAPONMODE_HPP__
#define __URDE_CWEAPONMODE_HPP__
#include "WeaponCommon.hpp"
2016-11-22 20:43:16 +00:00
namespace urde
{
class CWeaponMode
{
EWeaponType x0_weaponType = EWeaponType::None;
2016-11-22 20:43:16 +00:00
union
{
struct
{
bool x4_24_ : 1;
bool x4_25_ : 1;
bool x4_26_instantKill : 1;
};
u8 dummy = 0;
};
public:
CWeaponMode() = default;
2017-01-15 03:59:37 +00:00
CWeaponMode(EWeaponType, bool = false, bool = false, bool instaKill = false);
2016-11-22 20:43:16 +00:00
EWeaponType GetType() const;
bool IsCharged() const;
bool IsComboed() const;
bool IsInstantKill() const;
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__