2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-03-30 22:36:18 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CRipple.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CRippleManager
|
|
|
|
{
|
2018-06-04 01:56:21 +00:00
|
|
|
float x0_maxTimeFalloff = 0.f;
|
2017-03-30 22:36:18 +00:00
|
|
|
std::vector<CRipple> x4_ripples;
|
2018-06-04 01:56:21 +00:00
|
|
|
float x14_alpha;
|
2017-03-30 22:36:18 +00:00
|
|
|
public:
|
2018-06-04 01:56:21 +00:00
|
|
|
CRippleManager(int maxRipples, float alpha);
|
2017-03-30 22:36:18 +00:00
|
|
|
void Init(int maxRipples);
|
2017-08-10 07:05:27 +00:00
|
|
|
std::vector<CRipple>& Ripples() { return x4_ripples; }
|
|
|
|
const std::vector<CRipple>& GetRipples() const { return x4_ripples; }
|
2017-03-30 22:36:18 +00:00
|
|
|
void Update(float dt);
|
|
|
|
float GetLastRippleDeltaTime(TUniqueId rippler) const;
|
|
|
|
void AddRipple(const CRipple& ripple);
|
2018-06-04 01:56:21 +00:00
|
|
|
void SetMaxTimeFalloff(float time) { x0_maxTimeFalloff = time; }
|
|
|
|
float GetMaxTimeFalloff() const { return x0_maxTimeFalloff; }
|
|
|
|
void SetAlpha(float a) { x14_alpha = a; }
|
|
|
|
float GetAlpha() const { return x14_alpha; }
|
2017-03-30 22:36:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2017-08-10 07:05:27 +00:00
|
|
|
;
|