2016-11-22 20:43:16 +00:00
|
|
|
#include "CWeaponMode.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
CWeaponMode::CWeaponMode(EWeaponType type, bool b1, bool b2, bool b3)
|
2016-11-22 20:43:16 +00:00
|
|
|
: x0_weaponType(type)
|
2017-01-15 03:59:37 +00:00
|
|
|
, x4_24_(b1)
|
|
|
|
, x4_25_(b2)
|
|
|
|
, x4_26_instantKill(b3)
|
2016-11-22 20:43:16 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-12-22 19:57:21 +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
|
|
|
}
|
|
|
|
|
|
|
|
}
|