2016-04-16 23:48:29 +00:00
|
|
|
#ifndef __URDE_CCAMERASHAKEDATA_HPP__
|
|
|
|
#define __URDE_CCAMERASHAKEDATA_HPP__
|
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
#include "zeus/CVector3f.hpp"
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2016-04-16 23:48:29 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
2016-04-17 02:50:45 +00:00
|
|
|
class CRandom16;
|
2016-04-16 23:48:29 +00:00
|
|
|
|
|
|
|
class CCameraShakeData
|
|
|
|
{
|
2016-04-17 02:50:45 +00:00
|
|
|
friend class CCameraManager;
|
|
|
|
zeus::CVector3f x0_pointA;
|
|
|
|
zeus::CVector3f xc_pointB;
|
|
|
|
float x18_duration;
|
|
|
|
float x1c_curTime = 0.f;
|
|
|
|
u32 x20_shakerId = 0;
|
|
|
|
zeus::CVector3f x24_position;
|
|
|
|
zeus::CVector3f x30_velocity;
|
|
|
|
float x3c_cycleTimeLeft;
|
|
|
|
bool x40_shakeY;
|
2016-04-16 23:48:29 +00:00
|
|
|
public:
|
2016-04-17 02:50:45 +00:00
|
|
|
CCameraShakeData(float xA, float xB, float yA, float yB,
|
|
|
|
float zA, float zB, float duration, bool shakeY);
|
|
|
|
zeus::CVector3f GeneratePoint(float dt, CRandom16& r);
|
2016-04-16 23:48:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CCAMERASHAKEDATA_HPP__
|