mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:44:56 +00:00
Initial CActorContraption imps
This commit is contained in:
0
Runtime/Weapon/CFlameInfo.cpp
Normal file
0
Runtime/Weapon/CFlameInfo.cpp
Normal file
19
Runtime/Weapon/CFlameInfo.hpp
Normal file
19
Runtime/Weapon/CFlameInfo.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef __URDE_CFLAMEINFO_HPP__
|
||||
#define __URDE_CFLAMEINFO_HPP__
|
||||
|
||||
#include "Weapon/CGameProjectile.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
class CFlameInfo
|
||||
{
|
||||
ResId x4_flameFxId;
|
||||
public:
|
||||
CFlameInfo(s32, u32, s32, s32, float, float, float);
|
||||
|
||||
void GetAttributes() const;
|
||||
void GetLength() const;
|
||||
ResId GetFlameFxId() const { x4_flameFxId; }
|
||||
};
|
||||
}
|
||||
#endif // __URDE_CFLAMEINFO_HPP__
|
||||
16
Runtime/Weapon/CFlameThrower.cpp
Normal file
16
Runtime/Weapon/CFlameThrower.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Weapon/CFlameThrower.hpp"
|
||||
|
||||
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,
|
||||
const CDamageInfo& dInfo, TUniqueId owner, TAreaId aId, TUniqueId uid, u32 w1)
|
||||
: CGameProjectile(false, wDesc, name, wType, xf, matType, dInfo, owner, aId, uid, kInvalidUniqueId, w1, false,
|
||||
zeus::CVector3f(1.f), {}, -1, false)
|
||||
{
|
||||
}
|
||||
|
||||
void CFlameThrower::SetTransform(const zeus::CTransform& xf) { x2e8_ = xf; }
|
||||
}
|
||||
22
Runtime/Weapon/CFlameThrower.hpp
Normal file
22
Runtime/Weapon/CFlameThrower.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef __URDE_CFLAMETHROWER_HPP__
|
||||
#define __URDE_CFLAMETHROWER_HPP__
|
||||
|
||||
#include "Weapon/CGameProjectile.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
class CFlameInfo;
|
||||
class CFlameThrower : public CGameProjectile
|
||||
{
|
||||
static const zeus::CVector3f kLightOffset;
|
||||
zeus::CTransform x2e8_;
|
||||
|
||||
public:
|
||||
CFlameThrower(const TToken<CWeaponDescription>& wDesc, const std::string& name, EWeaponType wType,
|
||||
const CFlameInfo& flameInfo, const zeus::CTransform& xf, EMaterialTypes matType,
|
||||
const CDamageInfo& dInfo, TUniqueId owner, TAreaId aId, TUniqueId uid, u32 w1);
|
||||
|
||||
void SetTransform(const zeus::CTransform& xf);
|
||||
};
|
||||
}
|
||||
#endif // __URDE_CFLAMETHROWER_HPP__
|
||||
@@ -25,6 +25,8 @@ set(WEAPON_SOURCES
|
||||
CEnergyProjectile.cpp CEnergyProjectile.cpp
|
||||
CProjectileWeapon.hpp CProjectileWeapon.cpp
|
||||
CBomb.hpp CBomb.cpp
|
||||
CPowerBomb.hpp CPowerBomb.cpp)
|
||||
CPowerBomb.hpp CPowerBomb.cpp
|
||||
CFlameInfo.hpp CFlameInfo.cpp
|
||||
CFlameThrower.hpp CFlameThrower.cpp)
|
||||
|
||||
runtime_add_list(Weapon WEAPON_SOURCES)
|
||||
|
||||
Reference in New Issue
Block a user