2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-05-08 02:18:18 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/World/CScriptTrigger.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2018-05-08 02:18:18 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
class CScriptBallTrigger : public CScriptTrigger {
|
|
|
|
float x150_force;
|
|
|
|
float x154_minAngle;
|
|
|
|
float x158_maxDistance;
|
2019-02-24 07:15:54 +00:00
|
|
|
zeus::CVector3f x15c_forceAngle = zeus::skZero3f;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x168_24_canApplyForce : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
bool x168_25_stopPlayer : 1;
|
|
|
|
|
2018-05-08 02:18:18 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptBallTrigger(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CVector3f&, const zeus::CVector3f&,
|
|
|
|
bool, float, float, float, const zeus::CVector3f&, bool);
|
2018-05-08 02:18:18 +00:00
|
|
|
|
2019-08-09 12:45:18 +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;
|
2018-05-08 02:18:18 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|