2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CRUMBLEMANAGER_HPP__
|
|
|
|
#define __URDE_CRUMBLEMANAGER_HPP__
|
2016-02-21 06:34:42 +00:00
|
|
|
|
|
|
|
#include "CRumbleGenerator.hpp"
|
2018-01-26 09:48:42 +00:00
|
|
|
#include "zeus/CVector3f.hpp"
|
2016-02-21 06:34:42 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2016-02-21 06:34:42 +00:00
|
|
|
{
|
|
|
|
class CStateManager;
|
|
|
|
class CRumbleManager
|
|
|
|
{
|
|
|
|
CRumbleGenerator x0_rumbleGenerator;
|
|
|
|
public:
|
2018-01-26 09:48:42 +00:00
|
|
|
bool IsDisabled() const { return x0_rumbleGenerator.IsDisabled(); }
|
|
|
|
void SetDisabled(bool disabled) { x0_rumbleGenerator.SetDisabled(disabled); }
|
|
|
|
void Update(float dt) { x0_rumbleGenerator.Update(dt); }
|
|
|
|
void StopRumble(s16 id)
|
|
|
|
{
|
|
|
|
if (id == -1)
|
|
|
|
return;
|
|
|
|
x0_rumbleGenerator.Stop(id, EIOPort::Zero);
|
|
|
|
}
|
2018-05-20 06:14:57 +00:00
|
|
|
void HardStopAll() { x0_rumbleGenerator.HardStopAll(); }
|
2018-01-26 09:48:42 +00:00
|
|
|
s16 Rumble(CStateManager& mgr, const zeus::CVector3f& pos, ERumbleFxId fx, float dist, ERumblePriority priority);
|
|
|
|
s16 Rumble(CStateManager& mgr, ERumbleFxId fx, float gain, ERumblePriority priority);
|
2016-02-21 06:34:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CRUMBLEMANAGER_HPP__
|