2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CRIPPLEMANAGER
|
|
|
|
#define _CRIPPLEMANAGER
|
2022-08-13 02:48:34 +00:00
|
|
|
|
2022-10-20 00:25:03 +00:00
|
|
|
#include "MetroidPrime/TGameTypes.hpp"
|
2022-08-13 02:48:34 +00:00
|
|
|
|
|
|
|
#include "rstl/vector.hpp"
|
|
|
|
|
|
|
|
class CRipple;
|
|
|
|
|
|
|
|
class CRippleManager {
|
|
|
|
private:
|
2022-10-09 05:37:23 +00:00
|
|
|
float x0_maxTimeFalloff;
|
2022-08-13 02:48:34 +00:00
|
|
|
rstl::vector< CRipple > x4_ripples;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x14_alpha;
|
2022-10-20 00:25:03 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CRippleManager(int maxRipples, float alpha);
|
|
|
|
|
|
|
|
void Init(int maxRipples);
|
|
|
|
void Update(float dt);
|
|
|
|
float GetLastRippleDeltaTime(TUniqueId rippler) const;
|
|
|
|
void AddRipple(const CRipple& ripple);
|
2022-10-20 01:10:34 +00:00
|
|
|
|
|
|
|
void SetMaxTimeFalloff(float time) { x0_maxTimeFalloff = time; }
|
|
|
|
float GetMaxTimeFalloff() const { return x0_maxTimeFalloff; }
|
|
|
|
|
|
|
|
rstl::vector<CRipple>& Ripples() { return x4_ripples; }
|
|
|
|
const rstl::vector<CRipple>& GetRipples() const { return x4_ripples; }
|
|
|
|
|
|
|
|
void SetAlpha(float a) { x14_alpha = a; }
|
|
|
|
float GetAlpha() const { return x14_alpha; }
|
2022-08-13 02:48:34 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CRIPPLEMANAGER
|