2017-03-30 22:36:18 +00:00
|
|
|
#ifndef __URDE_CRIPPLEMANAGER_HPP__
|
|
|
|
#define __URDE_CRIPPLEMANAGER_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CRipple.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CRippleManager
|
|
|
|
{
|
|
|
|
float x0_ = 0.f;
|
|
|
|
std::vector<CRipple> x4_ripples;
|
|
|
|
float x14_;
|
|
|
|
public:
|
|
|
|
CRippleManager(int maxRipples, float);
|
|
|
|
void Init(int maxRipples);
|
|
|
|
void SetTime(float);
|
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);
|
|
|
|
void SetMaxTimeFalloff(float time);
|
|
|
|
float GetMaxTimeFalloff() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2017-08-10 07:05:27 +00:00
|
|
|
;
|
2017-03-30 22:36:18 +00:00
|
|
|
#endif // __URDE_CRIPPLEMANAGER_HPP__
|