2016-04-16 21:49:47 +00:00
|
|
|
#ifndef __URDE_CFIRSTPERSONCAMERA_HPP__
|
|
|
|
#define __URDE_CFIRSTPERSONCAMERA_HPP__
|
|
|
|
|
|
|
|
#include "CGameCamera.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CFirstPersonCamera : public CGameCamera
|
|
|
|
{
|
2016-09-15 07:26:35 +00:00
|
|
|
float x188_;
|
|
|
|
u8 x18c_;
|
|
|
|
zeus::CTransform x190_gunFollowXf;
|
|
|
|
float x1c0_;
|
2016-12-19 18:27:58 +00:00
|
|
|
TUniqueId x1c4_pitchId;
|
|
|
|
union {
|
2016-09-15 07:26:35 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x1c6_24_ : 1;
|
|
|
|
};
|
|
|
|
u16 _dummy = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
zeus::CVector3f x1c8_;
|
|
|
|
float x1d4_ = 0.f;
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2016-04-16 21:49:47 +00:00
|
|
|
public:
|
|
|
|
CFirstPersonCamera(TUniqueId, const zeus::CTransform& xf, TUniqueId, float, float, float, float, float);
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void PreThink(float, CStateManager&);
|
|
|
|
void Think(float, CStateManager&);
|
2016-08-15 01:19:04 +00:00
|
|
|
void ProcessInput(const CFinalInput&, CStateManager& mgr);
|
|
|
|
void Reset(const zeus::CTransform&, CStateManager& mgr);
|
2016-09-15 07:26:35 +00:00
|
|
|
|
|
|
|
void sub800E318();
|
|
|
|
zeus::CTransform GetGunFollowTransform();
|
2016-09-16 22:21:19 +00:00
|
|
|
void UpdateTransform(CStateManager&, float dt);
|
2016-09-15 07:26:35 +00:00
|
|
|
void UpdateElevation(CStateManager&);
|
2016-09-16 22:21:19 +00:00
|
|
|
void CalculateGunFollowOrientationAndTransform(zeus::CTransform&, zeus::CQuaternion&, float, zeus::CVector3f&);
|
2016-12-19 18:27:58 +00:00
|
|
|
void SetScriptPitchId(TUniqueId uid) { x1c4_pitchId = uid; }
|
2016-04-16 21:49:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CFIRSTPERSONCAMERA_HPP__
|