2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CSCRIPTWAYPOINT
|
|
|
|
#define _CSCRIPTWAYPOINT
|
2022-09-18 17:51:07 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "MetroidPrime/CActor.hpp"
|
|
|
|
|
|
|
|
class CScriptWaypoint : public CActor {
|
|
|
|
public:
|
|
|
|
CScriptWaypoint(TUniqueId uid, const rstl::string& name, const CEntityInfo& info,
|
|
|
|
const CTransform4f& xf, bool active, float speed, float pause,
|
2022-11-04 15:17:11 +00:00
|
|
|
int patternTranslate, int patternOrient, int patternFit, int behaviour,
|
|
|
|
int behaviourOrient, int behaviourModifiers, uint animation);
|
2022-09-18 17:51:07 +00:00
|
|
|
|
|
|
|
// CEntity
|
2023-02-06 17:01:01 +00:00
|
|
|
~CScriptWaypoint() override;
|
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
|
2022-09-18 17:51:07 +00:00
|
|
|
|
|
|
|
// CActor
|
2023-02-06 17:01:01 +00:00
|
|
|
void AddToRenderer(const CFrustumPlanes&, const CStateManager&) const override;
|
|
|
|
void Render(const CStateManager&) const override;
|
2022-09-18 17:51:07 +00:00
|
|
|
|
|
|
|
// CScriptWaypoint
|
|
|
|
TUniqueId NextWaypoint(const CStateManager& mgr) const;
|
2022-11-04 15:17:11 +00:00
|
|
|
TUniqueId FollowWaypoint(CStateManager& mgr) const;
|
2022-09-18 17:51:07 +00:00
|
|
|
|
2022-10-09 05:37:23 +00:00
|
|
|
float GetSpeed() const { return xe8_speed; }
|
2022-09-18 17:51:07 +00:00
|
|
|
uint GetAnimation() const { return xec_animation; }
|
2022-10-09 05:37:23 +00:00
|
|
|
float GetPause() const { return xf0_pause; }
|
|
|
|
uchar GetPatternTranslate() const { return xf4_patternTranslate; }
|
|
|
|
uchar GetPatternOrient() const { return xf5_patternOrient; }
|
|
|
|
uchar GetPatternFit() const { return xf6_patternFit; }
|
|
|
|
uchar GetBehaviour() const { return xf7_behaviour; }
|
|
|
|
uchar GetBehaviourOrient() const { return xf8_behaviourOrient; }
|
|
|
|
ushort GetBehaviourModifiers() const { return xfa_behaviourModifiers; }
|
2022-09-18 17:51:07 +00:00
|
|
|
|
|
|
|
private:
|
2022-10-09 05:37:23 +00:00
|
|
|
float xe8_speed;
|
2022-09-18 17:51:07 +00:00
|
|
|
uint xec_animation;
|
2022-10-09 05:37:23 +00:00
|
|
|
float xf0_pause;
|
|
|
|
uchar xf4_patternTranslate;
|
|
|
|
uchar xf5_patternOrient;
|
|
|
|
uchar xf6_patternFit;
|
|
|
|
uchar xf7_behaviour;
|
|
|
|
uchar xf8_behaviourOrient;
|
|
|
|
ushort xfa_behaviourModifiers;
|
2022-09-18 17:51:07 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CSCRIPTWAYPOINT
|