2022-10-28 21:06:29 +00:00
|
|
|
#ifndef _CNEWINTROBOSS
|
|
|
|
#define _CNEWINTROBOSS
|
|
|
|
|
|
|
|
#include "MetroidPrime/Enemies/CPatterned.hpp"
|
|
|
|
|
2022-10-30 19:47:50 +00:00
|
|
|
#include "Kyoto/Animation/CharacterCommon.hpp"
|
2022-10-28 21:06:29 +00:00
|
|
|
#include "MetroidPrime/CBoneTracking.hpp"
|
|
|
|
#include "MetroidPrime/Weapons/CProjectileInfo.hpp"
|
|
|
|
|
|
|
|
class CCollisionActorManager;
|
|
|
|
class CPatternedInfo;
|
2022-10-30 19:47:50 +00:00
|
|
|
|
2022-10-28 21:06:29 +00:00
|
|
|
class CNewIntroBoss : public CPatterned {
|
|
|
|
public:
|
|
|
|
CNewIntroBoss(TUniqueId, const rstl::string&, const CEntityInfo& info, const CTransform4f& xf,
|
|
|
|
const CModelData& mData, const CPatternedInfo& pInfo,
|
|
|
|
const CActorParameters& actParms, float minTurnAngle, CAssetId projectile,
|
|
|
|
const CDamageInfo& dInfo, CAssetId beamContactFxId, CAssetId beamPulseFxId,
|
|
|
|
CAssetId beamTextureId, CAssetId beamGlowTextureId);
|
|
|
|
|
2022-10-30 19:47:50 +00:00
|
|
|
// CEntity
|
2023-02-06 17:01:01 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void Think(float dt, CStateManager& mgr) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
|
2022-10-30 19:47:50 +00:00
|
|
|
|
|
|
|
// CActor
|
2023-02-06 17:01:01 +00:00
|
|
|
void AddToRenderer(const CFrustumPlanes&, const CStateManager&) const override;
|
|
|
|
rstl::optional_object< CAABox > GetTouchBounds() const override;
|
|
|
|
void OnScanStateChange(EScanState, CStateManager&) override;
|
|
|
|
CAABox GetSortingBounds(const CStateManager&) const override;
|
2022-10-30 19:47:50 +00:00
|
|
|
void DoUserAnimEvent(CStateManager& mgr, const CInt32POINode& node, EUserEventType type,
|
2023-02-06 17:01:01 +00:00
|
|
|
float dt) override;
|
2022-10-30 19:47:50 +00:00
|
|
|
|
|
|
|
// CAi
|
2023-02-06 17:01:01 +00:00
|
|
|
void Patrol(CStateManager&, EStateMsg, float) override;
|
|
|
|
void Generate(CStateManager& mgr, EStateMsg msg, float arg) override;
|
|
|
|
void Attack(CStateManager&, EStateMsg, float) override;
|
|
|
|
bool InAttackPosition(CStateManager&, float) override;
|
|
|
|
bool AnimOver(CStateManager&, float) override;
|
|
|
|
bool ShouldAttack(CStateManager&, float) override;
|
|
|
|
bool ShouldTurn(CStateManager&, float) override;
|
|
|
|
bool AIStage(CStateManager&, float) override;
|
2022-10-30 19:47:50 +00:00
|
|
|
|
|
|
|
// CPatterned
|
2023-02-06 17:01:01 +00:00
|
|
|
CProjectileInfo* ProjectileInfo() override;
|
2022-10-30 19:47:50 +00:00
|
|
|
|
2022-10-28 21:06:29 +00:00
|
|
|
pas::ELocomotionType GetLocoForHealth(const CStateManager& mgr) const;
|
|
|
|
pas::EGenerateType GetGenerateForHealth(const CStateManager& mgr) const;
|
|
|
|
float GetNextAttackTime(CStateManager& mgr) const;
|
|
|
|
CVector3f PlayerPos(const CStateManager& mgr) const;
|
|
|
|
void DeleteBeam(CStateManager& mgr);
|
|
|
|
void StopRumble(CStateManager& mgr);
|
|
|
|
|
|
|
|
float GetInitialHP() const { return x640_initialHp; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
pas::ELocomotionType x568_locomotion;
|
2022-10-30 19:47:50 +00:00
|
|
|
uint x56c_stateProg;
|
2022-10-28 21:06:29 +00:00
|
|
|
float x570_minTurnAngle;
|
|
|
|
CBoneTracking x574_boneTracking;
|
|
|
|
CProjectileInfo x5ac_projectileInfo;
|
|
|
|
TUniqueId x5d4_stage1Projectile;
|
|
|
|
TUniqueId x5d6_stage2Projectile;
|
|
|
|
TUniqueId x5d8_stage3Projectile;
|
|
|
|
rstl::string x5dc_damageLocator; // ???
|
|
|
|
rstl::single_ptr< CCollisionActorManager > x5ec_collisionManager;
|
|
|
|
CAssetId x5f0_beamContactFxId;
|
|
|
|
CAssetId x5f4_beamPulseFxId;
|
|
|
|
CAssetId x5f8_beamTextureId;
|
|
|
|
CAssetId x5fc_beamGlowTextureId;
|
|
|
|
TUniqueId x600_headActor;
|
|
|
|
TUniqueId x602_pelvisActor;
|
|
|
|
CVector3f x604_predictedPlayerPos;
|
|
|
|
CVector3f x610_lookPos;
|
|
|
|
CVector3f x61c_startPlayerPos;
|
|
|
|
float x628_firingTime;
|
|
|
|
CVector3f x62c_targetPos;
|
|
|
|
float x638_;
|
|
|
|
float x63c_attackTime;
|
|
|
|
float x640_initialHp;
|
|
|
|
CTransform4f x644_initialXf;
|
2022-10-30 19:47:50 +00:00
|
|
|
short x674_rumbleVoice;
|
2022-10-28 21:06:29 +00:00
|
|
|
TUniqueId x676_curProjectile;
|
|
|
|
bool x678_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _CNEWINTROBOSS
|