metaforce/Runtime/Camera/CFirstPersonCamera.hpp

49 lines
1.4 KiB
C++
Raw Normal View History

#ifndef __URDE_CFIRSTPERSONCAMERA_HPP__
#define __URDE_CFIRSTPERSONCAMERA_HPP__
#include "CGameCamera.hpp"
namespace urde
{
class CFirstPersonCamera : public CGameCamera
{
float x188_;
2017-07-17 03:04:14 +00:00
bool x18c_ = false;
zeus::CTransform x190_gunFollowXf;
2017-07-17 03:04:14 +00:00
float x1c0_ = 0.f;
TUniqueId x1c4_pitchId = kInvalidUniqueId;
union {
struct
{
bool x1c6_24_ : 1;
};
u16 _dummy = 0;
};
zeus::CVector3f x1c8_;
float x1d4_ = 0.f;
public:
2017-03-24 05:30:16 +00:00
CFirstPersonCamera(TUniqueId, const zeus::CTransform& xf, TUniqueId, float,
float fov, float nearplane, float farplane, float aspect);
2017-03-24 05:30:16 +00:00
void Accept(IVisitor& visitor);
void PreThink(float, CStateManager&);
void Think(float, CStateManager&);
void ProcessInput(const CFinalInput&, CStateManager& mgr);
void Reset(const zeus::CTransform&, CStateManager& mgr);
2017-02-18 02:19:50 +00:00
void SkipCinematic();
2017-05-30 03:45:31 +00:00
const zeus::CTransform& GetGunFollowTransform() const { return x190_gunFollowXf; }
2016-09-16 22:21:19 +00:00
void UpdateTransform(CStateManager&, float dt);
void UpdateElevation(CStateManager&);
2016-09-16 22:21:19 +00:00
void CalculateGunFollowOrientationAndTransform(zeus::CTransform&, zeus::CQuaternion&, float, zeus::CVector3f&);
void SetScriptPitchId(TUniqueId uid) { x1c4_pitchId = uid; }
2017-07-17 03:04:14 +00:00
void SetX18C(bool v) { x18c_ = v; }
2017-08-02 07:13:11 +00:00
void SetX1C6_24(bool v) { x1c6_24_ = v; }
};
}
#endif // __URDE_CFIRSTPERSONCAMERA_HPP__