metaforce/Runtime/Weapon/CWeaponMode.cpp

60 lines
1.0 KiB
C++
Raw Normal View History

2016-11-22 20:43:16 +00:00
#include "CWeaponMode.hpp"
#include "DataSpec/DNACommon/Tweaks/ITweakPlayerGun.hpp"
2016-11-22 20:43:16 +00:00
namespace urde
{
CWeaponMode::CWeaponMode(EWeaponType type, bool charged, bool comboed, bool instaKill)
2016-11-22 20:43:16 +00:00
: x0_weaponType(type)
, x4_24_charged(charged)
, x4_25_comboed(comboed)
, x4_26_instantKill(instaKill)
2016-11-22 20:43:16 +00:00
{
}
EWeaponType CWeaponMode::GetType() const
{
return x0_weaponType;
}
2016-11-22 20:43:16 +00:00
CWeaponMode CWeaponMode::Invalid()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::None);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::Phazon()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::Phazon);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::Plasma()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::Plasma);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::Wave()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::Wave);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::BoostBall()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::BoostBall);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::Ice()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::Ice);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::Power()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::Power);
2016-11-22 20:43:16 +00:00
}
CWeaponMode CWeaponMode::Bomb()
{
2017-01-15 03:59:37 +00:00
return CWeaponMode(EWeaponType::Bomb);
2016-11-22 20:43:16 +00:00
}
}