2016-12-22 19:57:21 +00:00
|
|
|
#ifndef __URDE_CBEAMPROJECTILE_HPP__
|
|
|
|
#define __URDE_CBEAMPROJECTILE_HPP__
|
|
|
|
|
|
|
|
#include "Weapon/CGameProjectile.hpp"
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CBeamProjectile : public CGameProjectile
|
|
|
|
{
|
2018-04-30 03:12:41 +00:00
|
|
|
u32 x2e8_;
|
|
|
|
float x2ec_;
|
|
|
|
float x2f0_;
|
|
|
|
float x2f4_;
|
|
|
|
u32 x2f8_ = 0;
|
|
|
|
TUniqueId x2fc_ = kInvalidUniqueId;
|
|
|
|
TUniqueId x2fe_ = kInvalidUniqueId;
|
|
|
|
float x300_;
|
|
|
|
float x304_;
|
|
|
|
float x308_;
|
|
|
|
zeus::CVector3f x30c_ = zeus::CVector3f::skUp;
|
|
|
|
zeus::CTransform x324_;
|
|
|
|
zeus::CAABox x354_ = zeus::CAABox::skNullBox;
|
|
|
|
rstl::reserved_vector<zeus::CVector3f, 10> x384_;
|
|
|
|
rstl::reserved_vector<zeus::CVector3f, 8> x400_;
|
|
|
|
bool x464_24_ : 1;
|
|
|
|
bool x464_25_ : 1;
|
2016-12-22 19:57:21 +00:00
|
|
|
public:
|
2017-11-13 06:19:18 +00:00
|
|
|
CBeamProjectile(const TToken<CWeaponDescription>& wDesc, std::string_view name, EWeaponType wType,
|
2018-04-30 03:12:41 +00:00
|
|
|
const zeus::CTransform& xf, s32 flags, float f1, float f2, EMaterialTypes matType,
|
2017-09-05 03:00:19 +00:00
|
|
|
const CDamageInfo& dInfo, TUniqueId uid, TAreaId aid, TUniqueId owner,
|
|
|
|
EProjectileAttrib attribs, bool b1);
|
2016-12-22 19:57:21 +00:00
|
|
|
|
2017-05-18 10:58:15 +00:00
|
|
|
void Accept(IVisitor &visitor);
|
2016-12-22 19:57:21 +00:00
|
|
|
float GetMaxRadius() const;
|
|
|
|
zeus::CVector3f GetSurfaceNormal() const;
|
|
|
|
void GetDamageType() const;
|
|
|
|
void GetCurrentPos() const;
|
|
|
|
void PointCache();
|
|
|
|
void GetPointCache() const;
|
|
|
|
void CauseDamage(bool);
|
|
|
|
zeus::CVector3f GetBeamOrigin() const;
|
|
|
|
void GetInvMaxLength() const;
|
|
|
|
void GetCurrentLength();
|
|
|
|
void GetMaxLength();
|
|
|
|
s32 GetIntMaxLength();
|
|
|
|
|
2018-04-30 03:12:41 +00:00
|
|
|
std::experimental::optional<zeus::CAABox> GetTouchBounds() const;
|
|
|
|
void CalculateRenderBounds();
|
2016-12-22 19:57:21 +00:00
|
|
|
virtual void ResetBeam(CStateManager&, bool);
|
|
|
|
virtual void UpdateFX(const zeus::CTransform&, float, CStateManager&);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __URDE_CBEAMPROJECTILE_HPP__
|