2016-04-17 02:50:45 +00:00
|
|
|
#ifndef __URDE_CFLUIDPLANEMANAGER_HPP__
|
|
|
|
#define __URDE_CFLUIDPLANEMANAGER_HPP__
|
|
|
|
|
2017-03-30 22:36:18 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CRippleManager.hpp"
|
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
2017-03-30 22:36:18 +00:00
|
|
|
class CStateManager;
|
|
|
|
class CScriptWater;
|
2016-04-17 02:50:45 +00:00
|
|
|
|
|
|
|
class CFluidPlaneManager
|
|
|
|
{
|
2017-03-30 22:36:18 +00:00
|
|
|
CRippleManager x0_rippleManager;
|
2017-03-03 07:18:12 +00:00
|
|
|
bool x121_;
|
|
|
|
class CFluidProfile
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Clear();
|
|
|
|
};
|
|
|
|
static CFluidProfile sProfile;
|
|
|
|
public:
|
2017-03-30 22:36:18 +00:00
|
|
|
CFluidPlaneManager();
|
2017-03-03 07:18:12 +00:00
|
|
|
void StartFrame(bool);
|
2017-03-06 06:33:51 +00:00
|
|
|
void EndFrame() { x121_ = false; }
|
2017-03-24 05:30:16 +00:00
|
|
|
void Update(float dt);
|
2017-03-30 22:36:18 +00:00
|
|
|
float GetLastRippleDeltaTime(TUniqueId rippler) const;
|
2017-07-05 18:34:12 +00:00
|
|
|
float GetLastSplashDeltaTime(TUniqueId splasher) const;
|
2017-03-30 22:36:18 +00:00
|
|
|
void CreateSplash(TUniqueId splasher, CStateManager& mgr, const CScriptWater& water,
|
|
|
|
const zeus::CVector3f& pos, float factor, bool);
|
2016-04-17 02:50:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CFLUIDPLANEMANAGER_HPP__
|