metaforce/Runtime/World/CRipple.hpp

42 lines
1.3 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-11-20 21:53:15 +00:00
#include "Runtime/RetroTypes.hpp"
#include <zeus/CVector3f.hpp>
2016-11-20 21:53:15 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class CRipple {
2016-11-20 21:53:15 +00:00
private:
2018-12-08 05:30:43 +00:00
TUniqueId x0_id;
float x4_time = 0.f;
zeus::CVector3f x8_center;
float x14_timeFalloff = 2.f;
float x18_distFalloff = 12.f;
float x1c_frequency = 3.f;
float x20_amplitude = 0.25f;
float x24_lookupAmplitude = 0.00098039221f;
float x28_ooTimeFalloff = 0.f;
float x2c_ooDistFalloff = 0.f;
float x30_ooPhase = 0.f;
float x34_phase = 0.f;
float x38_lookupPhase = 0.f;
u32 x3c_ = 0;
2016-11-20 21:53:15 +00:00
public:
2018-12-08 05:30:43 +00:00
CRipple(TUniqueId id, const zeus::CVector3f& center, float intensity);
2016-11-20 21:53:15 +00:00
2018-12-08 05:30:43 +00:00
void SetTime(float t) { x4_time = t; }
float GetTime() const { return x4_time; }
float GetTimeFalloff() const { return x14_timeFalloff; }
TUniqueId GetUniqueId() const { return x0_id; }
float GetFrequency() const { return x1c_frequency; }
float GetAmplitude() const { return x20_amplitude; }
float GetLookupAmplitude() const { return x24_lookupAmplitude; }
float GetOODistanceFalloff() const { return x2c_ooDistFalloff; }
float GetDistanceFalloff() const { return x18_distFalloff; }
const zeus::CVector3f& GetCenter() const { return x8_center; }
float GetOOTimeFalloff() const { return x28_ooTimeFalloff; }
float GetPhase() const { return x34_phase; }
float GetLookupPhase() const { return x38_lookupPhase; }
2016-11-20 21:53:15 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce