2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/World/CActor.hpp"
|
|
|
|
|
|
|
|
#include <zeus/COBBox.hpp>
|
|
|
|
#include <zeus/CRelAngle.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
class CScriptCameraPitchVolume : public CActor {
|
|
|
|
static const zeus::CVector3f skScaleFactor;
|
|
|
|
zeus::COBBox xe8_obbox;
|
|
|
|
zeus::CRelAngle x124_upPitch;
|
|
|
|
zeus::CRelAngle x128_downPitch;
|
|
|
|
zeus::CVector3f x12c_scale;
|
|
|
|
float x138_maxInterpDistance;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x13c_24_entered : 1 = false;
|
|
|
|
bool x13c_25_occupied : 1 = false;
|
2016-12-19 18:27:58 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptCameraPitchVolume(TUniqueId, bool, std::string_view, const CEntityInfo&, const zeus::CVector3f&,
|
|
|
|
const zeus::CTransform&, const zeus::CRelAngle&, const zeus::CRelAngle&, float);
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
|
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override;
|
|
|
|
void Touch(CActor&, CStateManager&) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
float GetUpPitch() const { return x124_upPitch; }
|
|
|
|
float GetDownPitch() const { return x128_downPitch; }
|
|
|
|
const zeus::CVector3f& GetScale() const { return x12c_scale; }
|
|
|
|
float GetMaxInterpolationDistance() const { return x138_maxInterpDistance; }
|
|
|
|
void Entered(CStateManager&);
|
|
|
|
void Exited(CStateManager&);
|
2016-12-19 18:27:58 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|