metaforce/Runtime/Camera/CFirstPersonCamera.hpp

45 lines
1.1 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_;
u8 x18c_;
zeus::CTransform x190_gunFollowXf;
float x1c0_;
TUniqueId x1c4_pitchId;
union {
struct
{
bool x1c6_24_ : 1;
};
u16 _dummy = 0;
};
zeus::CVector3f x1c8_;
float x1d4_ = 0.f;
public:
CFirstPersonCamera(TUniqueId, const zeus::CTransform& xf, TUniqueId, float, float, float, float, float);
void PreThink(float, CStateManager&);
void Think(float, CStateManager&);
void ProcessInput(const CFinalInput&, CStateManager& mgr);
void Reset(const zeus::CTransform&, CStateManager& mgr);
void sub800E318();
zeus::CTransform GetGunFollowTransform();
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; }
};
}
#endif // __URDE_CFIRSTPERSONCAMERA_HPP__