2019-08-23 08:32:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/Character/CSteeringBehaviors.hpp"
|
|
|
|
#include "Runtime/World/CDamageInfo.hpp"
|
|
|
|
#include "Runtime/World/CPatterned.hpp"
|
2019-08-23 08:32:48 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce::MP1 {
|
2019-08-23 08:32:48 +00:00
|
|
|
class CEnergyBall : public CPatterned {
|
2019-08-31 09:02:21 +00:00
|
|
|
CSteeringBehaviors x568_steeringBehaviors;
|
|
|
|
float x56c_ = 0.f;
|
|
|
|
s32 x570_;
|
|
|
|
float x574_;
|
|
|
|
CDamageInfo x578_;
|
|
|
|
float x594_initialTurnSpeed;
|
|
|
|
float x598_;
|
|
|
|
CAssetId x59c_;
|
|
|
|
s16 x5a0_;
|
|
|
|
CAssetId x5a4_;
|
|
|
|
TToken<CElectricDescription> x5a8_; // originally an rstl::optional_object
|
|
|
|
s16 x5b4_;
|
|
|
|
float x5b8_;
|
|
|
|
float x5bc_;
|
|
|
|
TToken<CGenDescription> x5c0_;
|
|
|
|
CDamageInfo x5cc_;
|
|
|
|
float x5e8_;
|
|
|
|
|
|
|
|
void sub8029f4a8(CStateManager& mgr);
|
2019-08-23 08:32:48 +00:00
|
|
|
public:
|
2020-08-23 19:03:33 +00:00
|
|
|
DEFINE_PATTERNED(EnergyBall);
|
2019-08-23 08:32:48 +00:00
|
|
|
CEnergyBall(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
|
|
|
CModelData&& mData, const CActorParameters& actParms, const CPatternedInfo& pInfo, s32 w1, float f1,
|
|
|
|
const CDamageInfo& dInfo1, float f2, const CAssetId& a1, s16 sfxId1, const CAssetId& a2,
|
|
|
|
const CAssetId& a3, s16 sfxId2, float f3, float f4, const CAssetId& a4, const CDamageInfo& dInfo2,
|
|
|
|
float f5);
|
2019-08-31 09:02:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
void Think(float dt, CStateManager& mgr) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
|
|
|
|
void Death(CStateManager& mgr, const zeus::CVector3f& direction, EScriptObjectState state) override;
|
|
|
|
void Generate(CStateManager& mgr, EStateMsg msg, float arg) override;
|
|
|
|
void Attack(CStateManager& mgr, EStateMsg msg, float arg) override;
|
2019-08-23 08:32:48 +00:00
|
|
|
};
|
|
|
|
}
|