2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-08-21 00:29:59 +00:00
|
|
|
|
|
|
|
#include "World/CPatterned.hpp"
|
|
|
|
#include "World/CDamageInfo.hpp"
|
2018-11-18 05:10:06 +00:00
|
|
|
#include "DataSpec/DNAMP1/SFX/Metaree.h"
|
2017-08-21 00:29:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde::MP1 {
|
|
|
|
class CMetaree : public CPatterned {
|
|
|
|
float x568_delay;
|
|
|
|
float x56c_;
|
|
|
|
float x570_dropHeight;
|
|
|
|
zeus::CVector3f x574_offset;
|
|
|
|
float x580_attackSpeed;
|
|
|
|
zeus::CVector3f x584_lookPos;
|
|
|
|
zeus::CVector3f x590_projectileDelta;
|
|
|
|
zeus::CVector3f x59c_velocity;
|
|
|
|
u32 x5a8_ = 0;
|
|
|
|
CDamageInfo x5ac_damgeInfo;
|
|
|
|
u16 x5c8_attackSfx = SFXsfx0225;
|
2017-08-21 00:29:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
struct {
|
|
|
|
struct {
|
|
|
|
bool x5ca_24_ : 1;
|
|
|
|
bool x5ca_25_started : 1;
|
|
|
|
bool x5ca_26_deactivated : 1;
|
2017-08-21 00:29:59 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
u16 _dummy;
|
|
|
|
};
|
|
|
|
|
|
|
|
u32 x5cc_;
|
2017-08-21 00:29:59 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
DEFINE_PATTERNED(Metaree)
|
|
|
|
CMetaree(TUniqueId, std::string_view, EFlavorType, const CEntityInfo&, const zeus::CTransform&, CModelData&&,
|
|
|
|
const CPatternedInfo&, const CDamageInfo&, float, const zeus::CVector3f&, float, EBodyType, float, float,
|
|
|
|
const CActorParameters&);
|
2017-08-21 00:29:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
|
|
|
void Think(float, CStateManager&);
|
2017-08-21 00:29:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Touch(CActor&, CStateManager&);
|
2019-02-08 07:56:54 +00:00
|
|
|
void CollidedWith(TUniqueId, const CCollisionInfoList&, CStateManager&);
|
2018-12-08 05:30:43 +00:00
|
|
|
void ThinkAboutMove(float){};
|
|
|
|
bool Delay(CStateManager&, float) { return x330_stateMachineState.GetTime() > x568_delay; }
|
|
|
|
void Explode(CStateManager&, EStateMsg, float);
|
|
|
|
void Flee(CStateManager&, EStateMsg, float);
|
|
|
|
void Dead(CStateManager&, EStateMsg, float);
|
|
|
|
void Attack(CStateManager&, EStateMsg, float);
|
|
|
|
void Halt(CStateManager&, EStateMsg, float);
|
|
|
|
void Active(CStateManager&, EStateMsg, float);
|
|
|
|
void InActive(CStateManager&, EStateMsg, float);
|
|
|
|
bool InRange(CStateManager&, float);
|
|
|
|
bool ShouldAttack(CStateManager&, float);
|
2017-08-21 00:29:59 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|