metaforce/Runtime/Weapon/CFlameThrower.cpp

32 lines
1.3 KiB
C++
Raw Normal View History

2017-05-09 13:27:07 +00:00
#include "Weapon/CFlameThrower.hpp"
#include "Weapon/CFlameInfo.hpp"
#include "Particle/CElementGen.hpp"
#include "GameGlobalObjects.hpp"
#include "CSimplePool.hpp"
#include "TCastTo.hpp"
2017-05-09 13:27:07 +00:00
namespace urde
{
const zeus::CVector3f CFlameThrower::kLightOffset(0, 3.f, 2.f);
CFlameThrower::CFlameThrower(const TToken<CWeaponDescription>& wDesc, const std::string& name, EWeaponType wType,
const CFlameInfo& flameInfo, const zeus::CTransform& xf, EMaterialTypes matType,
2017-05-20 07:41:49 +00:00
const CDamageInfo& dInfo, TUniqueId owner, TAreaId aId, TUniqueId uid, u32 w1, u32 w2,
s16 sId, u32 w3)
2017-05-09 13:27:07 +00:00
: CGameProjectile(false, wDesc, name, wType, xf, matType, dInfo, owner, aId, uid, kInvalidUniqueId, w1, false,
zeus::CVector3f(1.f), {}, -1, false)
, x2e8_(xf)
2017-05-11 19:42:43 +00:00
, x33c_flameDesc(g_SimplePool->GetObj({FOURCC('PART'), flameInfo.GetFlameFxId()}))
, x348_flameGen(new CElementGen(x33c_flameDesc, CElementGen::EModelOrientationType::Normal,
CElementGen::EOptionalSystemFlags::One))
2017-05-09 13:27:07 +00:00
{
}
void CFlameThrower::Accept(IVisitor& visitor) { visitor.Visit(this); }
2017-05-09 13:27:07 +00:00
void CFlameThrower::SetTransform(const zeus::CTransform& xf) { x2e8_ = xf; }
2017-05-20 07:41:49 +00:00
void CFlameThrower::Reset(CStateManager&, bool) {}
2017-05-20 07:41:49 +00:00
void CFlameThrower::Fire(const zeus::CTransform&, CStateManager&, bool) {}
2017-05-09 13:27:07 +00:00
}