mirror of https://github.com/AxioDL/metaforce.git
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "World/CPatterned.hpp"
|
|
#include "Collision/CCollisionActorManager.hpp"
|
|
|
|
namespace urde::MP1 {
|
|
class CFlaahgraTentacle : public CPatterned {
|
|
static const SSphereJointInfo skJointList[3];
|
|
static constexpr std::string_view skpTentacleTip = "Arm_12"sv;
|
|
s32 x568_ = -1;
|
|
std::unique_ptr<CCollisionActorManager> x56c_collisionManager;
|
|
float x570_ = 0.f;
|
|
float x574_ = 0.f;
|
|
float x578_ = 0.f;
|
|
TUniqueId x57c_tentacleTipAct = kInvalidUniqueId;
|
|
zeus::CVector3f x580_forceVector;
|
|
TUniqueId x58c_triggerId = kInvalidUniqueId;
|
|
bool x58e_24_ : 1;
|
|
|
|
void AddSphereCollisionList(const SSphereJointInfo*, s32, std::vector<CJointCollisionDescription>&);
|
|
void SetupCollisionManager(CStateManager&);
|
|
void ExtractTentacle(CStateManager&);
|
|
void RetractTentacle(CStateManager&);
|
|
void SaveBombSlotInfo(CStateManager&);
|
|
public:
|
|
DEFINE_PATTERNED(FlaahgraTentacle);
|
|
CFlaahgraTentacle(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, CModelData&&,
|
|
const CPatternedInfo&, const CActorParameters&);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
|
void Think(float, CStateManager&);
|
|
|
|
zeus::CVector3f GetAimPosition(const CStateManager&, float) const;
|
|
|
|
bool Inside(CStateManager&, float) { return x450_bodyController->GetLocomotionType() == pas::ELocomotionType::Crouch; }
|
|
bool AnimOver(CStateManager&, float) { return x568_ == 3; }
|
|
bool ShouldAttack(CStateManager&, float);
|
|
|
|
void Dead(CStateManager&, EStateMsg, float) { x450_bodyController->SetLocomotionType(pas::ELocomotionType::Crouch); }
|
|
void Attack(CStateManager&, EStateMsg, float);
|
|
void Retreat(CStateManager&, EStateMsg, float);
|
|
void InActive(CStateManager&, EStateMsg, float);
|
|
};
|
|
} |