2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-08-27 03:02:18 +00:00
|
|
|
|
|
|
|
#include "CWeapon.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2018-09-10 01:04:57 +00:00
|
|
|
class CElementGen;
|
2017-08-27 03:02:18 +00:00
|
|
|
class CPowerBomb : public CWeapon
|
|
|
|
{
|
2018-09-10 01:04:57 +00:00
|
|
|
static const zeus::CColor kFadeColor;
|
|
|
|
bool x158_24_canStartFilter : 1;
|
|
|
|
bool x158_25_filterEnabled : 1;
|
2017-08-27 03:02:18 +00:00
|
|
|
float x15c_curTime = 0.f;
|
2018-09-10 01:04:57 +00:00
|
|
|
float x160_curRadius = 0.f;
|
|
|
|
float x164_radiusIncrement;
|
|
|
|
std::unique_ptr<CElementGen> x168_particle;
|
|
|
|
float x16c_radius;
|
2017-08-27 03:02:18 +00:00
|
|
|
public:
|
|
|
|
CPowerBomb(const TToken<CGenDescription>& particle, TUniqueId uid, TAreaId aid,
|
|
|
|
TUniqueId playerId, const zeus::CTransform& xf, const CDamageInfo& dInfo);
|
2018-09-10 01:04:57 +00:00
|
|
|
|
|
|
|
void Accept(IVisitor& visitor);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
|
|
|
void Think(float, CStateManager&);
|
|
|
|
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const;
|
|
|
|
void Render(const CStateManager&) const {}
|
|
|
|
std::experimental::optional<zeus::CAABox> GetTouchBounds() const { return {}; }
|
|
|
|
void Touch(CActor&, CStateManager&) { /*x158_24_canStartFilter; */}
|
2017-08-27 03:02:18 +00:00
|
|
|
float GetCurTime() const { return x15c_curTime; }
|
2018-09-10 01:04:57 +00:00
|
|
|
void ApplyDynamicDamage(const zeus::CVector3f&, CStateManager&);
|
2017-08-27 03:02:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|