2022-11-04 23:46:13 +00:00
|
|
|
#ifndef _CSCRIPTBALLTRIGGER
|
|
|
|
#define _CSCRIPTBALLTRIGGER
|
|
|
|
|
|
|
|
#include "MetroidPrime/ScriptObjects/CScriptTrigger.hpp"
|
|
|
|
|
|
|
|
class CScriptBallTrigger : public CScriptTrigger {
|
|
|
|
public:
|
|
|
|
CScriptBallTrigger(TUniqueId, const rstl::string&, const CEntityInfo&, const CVector3f&,
|
|
|
|
const CVector3f&, bool, float, float, float, const CVector3f&, bool);
|
|
|
|
~CScriptBallTrigger();
|
|
|
|
|
2023-02-06 17:01:01 +00: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-04 23:46:13 +00: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
|