prime/include/MetroidPrime/CRippleManager.hpp

35 lines
848 B
C++
Raw Normal View History

#ifndef _CRIPPLEMANAGER
#define _CRIPPLEMANAGER
2022-10-20 00:25:03 +00:00
#include "MetroidPrime/TGameTypes.hpp"
#include "rstl/vector.hpp"
class CRipple;
class CRippleManager {
private:
float x0_maxTimeFalloff;
rstl::vector< CRipple > x4_ripples;
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; }
};
#endif // _CRIPPLEMANAGER