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-08-13 02:48:34 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CRIPPLEMANAGER
|