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-09 01:13:56 +00:00
|
|
|
class CElementGen;
|
2017-08-27 03:02:18 +00:00
|
|
|
class CBomb : public CWeapon
|
|
|
|
{
|
2018-09-09 01:13:56 +00:00
|
|
|
|
|
|
|
zeus::CVector3f x158_;
|
|
|
|
zeus::CVector3f x164_;
|
|
|
|
zeus::CVector3f x170_prevLocation;
|
|
|
|
float x17c_fuseTime;
|
|
|
|
std::unique_ptr<CElementGen> x180_particle1;
|
|
|
|
std::unique_ptr<CElementGen> x184_particle2;
|
|
|
|
TUniqueId x188_lightId = kInvalidUniqueId;
|
|
|
|
const CGenDescription* x18c_;
|
|
|
|
bool x190_24_isNotDetonated : 1;
|
|
|
|
bool x190_25_ : 1;
|
|
|
|
bool x190_26_disableFuse : 1;
|
2017-08-27 03:02:18 +00:00
|
|
|
public:
|
2018-09-09 01:13:56 +00:00
|
|
|
CBomb(const TCachedToken<CGenDescription>& particle1, const TCachedToken<CGenDescription>& particle2,
|
2017-08-27 03:02:18 +00:00
|
|
|
TUniqueId uid, TAreaId aid, TUniqueId playerId, float f1,
|
|
|
|
const zeus::CTransform& xf, const CDamageInfo& dInfo);
|
2018-09-09 01:13:56 +00:00
|
|
|
|
|
|
|
void Accept(IVisitor&);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
|
|
|
void Think(float, CStateManager&);
|
|
|
|
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const;
|
|
|
|
void Render(const CStateManager&) const {}
|
|
|
|
void Touch(CActor&, CStateManager&);
|
|
|
|
void Explode(const zeus::CVector3f&, CStateManager&);
|
|
|
|
void UpdateLight(float, CStateManager&);
|
|
|
|
std::experimental::optional<zeus::CAABox> GetTouchBounds() const;
|
2017-08-27 03:02:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|