2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-08-20 17:29:59 -07:00
|
|
|
|
2022-02-21 01:04:16 -08:00
|
|
|
#include "Audio/SFX/Metaree.h"
|
2017-08-20 17:29:59 -07:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include "Runtime/World/CDamageInfo.hpp"
|
|
|
|
#include "Runtime/World/CPatterned.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CVector3f.hpp>
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce::MP1 {
|
2018-12-07 21:30:43 -08:00
|
|
|
class CMetaree : public CPatterned {
|
|
|
|
float x568_delay;
|
2020-05-14 08:27:13 -07:00
|
|
|
float x56c_haltDelay;
|
2018-12-07 21:30:43 -08:00
|
|
|
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;
|
2020-01-02 16:54:59 -08:00
|
|
|
CDamageInfo x5ac_damageInfo;
|
2018-12-07 21:30:43 -08:00
|
|
|
u16 x5c8_attackSfx = SFXsfx0225;
|
2020-05-14 08:27:13 -07:00
|
|
|
bool x5ca_24_ : 1;
|
|
|
|
bool x5ca_25_started : 1;
|
|
|
|
bool x5ca_26_deactivated : 1;
|
2018-12-07 21:30:43 -08:00
|
|
|
u32 x5cc_;
|
2017-08-20 17:29:59 -07:00
|
|
|
|
|
|
|
public:
|
2020-08-23 12:03:33 -07:00
|
|
|
DEFINE_PATTERNED(Metaree);
|
2018-12-07 21:30:43 -08:00
|
|
|
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-20 17:29:59 -07:00
|
|
|
|
2019-08-09 12:46:49 -07:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
2017-08-20 17:29:59 -07:00
|
|
|
|
2019-08-09 12:46:49 -07:00
|
|
|
void Touch(CActor&, CStateManager&) override;
|
|
|
|
void CollidedWith(TUniqueId, const CCollisionInfoList&, CStateManager&) override;
|
|
|
|
void ThinkAboutMove(float) override {}
|
|
|
|
bool Delay(CStateManager&, float) override { return x330_stateMachineState.GetTime() > x568_delay; }
|
|
|
|
void Explode(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Flee(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Dead(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Attack(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Halt(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Active(CStateManager&, EStateMsg, float) override;
|
|
|
|
void InActive(CStateManager&, EStateMsg, float) override;
|
|
|
|
bool InRange(CStateManager&, float) override;
|
|
|
|
bool ShouldAttack(CStateManager&, float) override;
|
2017-08-20 17:29:59 -07:00
|
|
|
};
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce::MP1
|