2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-12-19 18:27:58 +00:00
|
|
|
|
|
|
|
#include "CActor.hpp"
|
|
|
|
#include "zeus/CRelAngle.hpp"
|
|
|
|
#include "zeus/COBBox.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CScriptCameraPitchVolume : public CActor
|
|
|
|
{
|
|
|
|
static const zeus::CVector3f skScaleFactor;
|
|
|
|
zeus::COBBox xe8_obbox;
|
2017-10-07 05:32:11 +00:00
|
|
|
zeus::CRelAngle x124_upPitch;
|
|
|
|
zeus::CRelAngle x128_downPitch;
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f x12c_scale;
|
|
|
|
float x138_maxInterpDistance;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x13c_24_entered : 1;
|
|
|
|
bool x13c_25_occupied : 1;
|
|
|
|
};
|
|
|
|
u32 _dummy = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptCameraPitchVolume(TUniqueId, bool, std::string_view, const CEntityInfo&, const zeus::CVector3f&,
|
2016-12-19 18:27:58 +00:00
|
|
|
const zeus::CTransform&, const zeus::CRelAngle&, const zeus::CRelAngle&, float);
|
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
2016-12-19 18:27:58 +00:00
|
|
|
void Think(float, CStateManager&);
|
2018-04-30 03:12:41 +00:00
|
|
|
std::experimental::optional<zeus::CAABox> GetTouchBounds() const;
|
2016-12-19 18:27:58 +00:00
|
|
|
void Touch(CActor&, CStateManager&);
|
2017-10-07 05:32:11 +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; }
|
2016-12-19 18:27:58 +00:00
|
|
|
void Entered(CStateManager&);
|
|
|
|
void Exited(CStateManager&);
|
|
|
|
};
|
|
|
|
}
|