metaforce/Runtime/Weapon/CFlameThrower.cpp

31 lines
1.2 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);
2017-11-13 06:19:18 +00:00
CFlameThrower::CFlameThrower(const TToken<CWeaponDescription>& wDesc, std::string_view name, EWeaponType wType,
2017-05-09 13:27:07 +00:00
const CFlameInfo& flameInfo, const zeus::CTransform& xf, EMaterialTypes matType,
2017-09-05 03:00:19 +00:00
const CDamageInfo& dInfo, TUniqueId uid, TAreaId aId, TUniqueId owner,
EProjectileAttrib attribs, u32 w2, s16 sId, u32 w3)
: CGameProjectile(false, wDesc, name, wType, xf, matType, dInfo, uid, aId, owner, kInvalidUniqueId, attribs, false,
2017-05-09 13:27:07 +00:00
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))
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
}