2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-07-08 23:03:35 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Runtime/Weapon/CProjectileInfo.hpp"
|
|
|
|
#include "Runtime/World/CPathFindSearch.hpp"
|
|
|
|
#include "Runtime/World/CWallWalker.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CAABox.hpp>
|
2018-07-08 23:03:35 +00:00
|
|
|
|
2018-12-31 08:37:52 +00:00
|
|
|
namespace urde::MP1 {
|
2018-12-08 05:30:43 +00:00
|
|
|
class CSeedling : public CWallWalker {
|
|
|
|
CPathFindSearch x5d8_searchPath;
|
|
|
|
std::unique_ptr<CModelData> x6bc_spikeData;
|
|
|
|
CProjectileInfo x6c0_projectileInfo;
|
|
|
|
CDamageInfo x6e8_deathDamage;
|
2019-02-24 07:15:54 +00:00
|
|
|
zeus::CAABox x704_modelBounds = zeus::skNullBox;
|
2018-12-08 05:30:43 +00:00
|
|
|
float x71c_attackCoolOff = 0.f;
|
|
|
|
TUniqueId x720_prevObj = kInvalidUniqueId;
|
2020-04-21 07:22:41 +00:00
|
|
|
bool x722_24_renderOnlyClusterA : 1 = true;
|
|
|
|
bool x722_25_curNeedleCluster : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
void LaunchNeedles(CStateManager&);
|
|
|
|
|
2018-07-08 23:03:35 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
DEFINE_PATTERNED(Seedling)
|
|
|
|
CSeedling(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, CModelData&&,
|
|
|
|
const CPatternedInfo&, const CActorParameters&, CAssetId, CAssetId, const CDamageInfo&, const CDamageInfo&,
|
|
|
|
float, float, float, float);
|
2018-07-08 23:03:35 +00:00
|
|
|
|
2019-08-09 19:46:49 +00:00
|
|
|
void Accept(IVisitor&) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
2020-04-09 17:28:20 +00:00
|
|
|
void Render(CStateManager&) override;
|
2019-08-09 19:46:49 +00:00
|
|
|
void DoUserAnimEvent(CStateManager& mgr, const CInt32POINode& node, EUserEventType type, float dt) override;
|
|
|
|
CProjectileInfo* GetProjectileInfo() override { return &x6c0_projectileInfo; }
|
|
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override;
|
|
|
|
void Touch(CActor&, CStateManager&) override;
|
|
|
|
CPathFindSearch* GetSearchPath() override { return &x5d8_searchPath; }
|
|
|
|
void Patrol(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Active(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Enraged(CStateManager&, EStateMsg, float) override;
|
|
|
|
void ProjectileAttack(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Generate(CStateManager&, EStateMsg, float) override;
|
|
|
|
bool ShouldAttack(CStateManager&, float) override;
|
|
|
|
void MassiveDeath(CStateManager&) override;
|
2018-07-08 23:03:35 +00:00
|
|
|
};
|
2019-01-31 20:44:05 +00:00
|
|
|
} // namespace urde::MP1
|