2022-11-05 01:46:13 +02:00
|
|
|
#ifndef _CSCRIPTBALLTRIGGER
|
|
|
|
|
#define _CSCRIPTBALLTRIGGER
|
|
|
|
|
|
|
|
|
|
#include "MetroidPrime/ScriptObjects/CScriptTrigger.hpp"
|
|
|
|
|
|
|
|
|
|
class CScriptBallTrigger : public CScriptTrigger {
|
|
|
|
|
public:
|
|
|
|
|
CScriptBallTrigger(TUniqueId, const rstl::string&, const CEntityInfo&, const CVector3f&,
|
2026-02-24 23:38:31 -07:00
|
|
|
const CVector3f&, bool, float, float, float, CVector3f, bool);
|
2022-11-05 01:46:13 +02:00
|
|
|
~CScriptBallTrigger();
|
|
|
|
|
|
2023-02-06 12:01:01 -05:00
|
|
|
void Accept(IVisitor&) override;
|
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
|
void Think(float, CStateManager& mgr) override;
|
|
|
|
|
void InhabitantAdded(CActor&, CStateManager&) override;
|
|
|
|
|
void InhabitantExited(CActor&, CStateManager&) override;
|
2022-11-05 01:46:13 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
float x150_force;
|
|
|
|
|
float x154_minAngle;
|
|
|
|
|
float x158_maxDistance;
|
|
|
|
|
CVector3f x15c_forceAngle;
|
|
|
|
|
bool x168_24_canApplyForce : 1;
|
|
|
|
|
bool x168_25_stopPlayer : 1;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // _CSCRIPTBALLTRIGGER
|