2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-03-31 19:51:40 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/World/CAi.hpp"
|
2017-03-31 19:51:40 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-03-31 19:51:40 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CDestroyableRock : public CAi {
|
2017-03-31 19:51:40 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CDestroyableRock(TUniqueId id, bool active, std::string_view name, const CEntityInfo& info,
|
|
|
|
const zeus::CTransform& xf, CModelData&& modelData, float mass, const CHealthInfo& health,
|
|
|
|
const CDamageVulnerability& vulnerability, const CMaterialList& matList, CAssetId fsm,
|
2019-11-24 15:01:07 +00:00
|
|
|
const CActorParameters& actParams, const CModelData& modelData2, s32);
|
|
|
|
|
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void Death(CStateManager& mgr, const zeus::CVector3f& direction, EScriptObjectState state) override;
|
|
|
|
void KnockBack(const zeus::CVector3f&, CStateManager&, const CDamageInfo& info, EKnockBackType type, bool inDeferred,
|
|
|
|
float magnitude) override;
|
2017-03-31 19:51:40 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|