2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CFLAMEWARP_HPP__
|
|
|
|
#define __URDE_CFLAMEWARP_HPP__
|
2016-02-16 03:25:06 +00:00
|
|
|
|
|
|
|
#include "CWarp.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2016-02-16 03:25:06 +00:00
|
|
|
{
|
2017-09-10 09:04:51 +00:00
|
|
|
class CStateManager;
|
|
|
|
|
2016-02-16 03:25:06 +00:00
|
|
|
class CFlameWarp : public CWarp
|
|
|
|
{
|
2017-09-10 09:04:51 +00:00
|
|
|
rstl::reserved_vector<zeus::CVector3f, 9> x4_vecs;
|
|
|
|
zeus::CVector3f x74_warpPoint;
|
|
|
|
zeus::CVector3f x80_floatingPoint;
|
|
|
|
float x8c_maxDistSq = 0.f;
|
|
|
|
float x90_minSize = FLT_MAX;
|
|
|
|
float x94_maxSize = FLT_MIN;
|
|
|
|
float x98_maxInfluenceDistSq;
|
|
|
|
CStateManager* x9c_stateMgr = nullptr;
|
|
|
|
bool xa0_24_activated : 1;
|
|
|
|
bool xa0_25_collisionWarp : 1;
|
|
|
|
bool xa0_26_processed : 1;
|
2016-02-16 03:25:06 +00:00
|
|
|
public:
|
2017-09-10 09:04:51 +00:00
|
|
|
CFlameWarp(float maxInfluenceDist, const zeus::CVector3f& warpPoint, bool collisionWarp)
|
|
|
|
: x74_warpPoint(warpPoint), x80_floatingPoint(warpPoint),
|
|
|
|
x98_maxInfluenceDistSq(maxInfluenceDist * maxInfluenceDist)
|
2016-02-16 03:25:06 +00:00
|
|
|
{
|
2017-09-10 09:04:51 +00:00
|
|
|
x4_vecs.resize(9, warpPoint);
|
|
|
|
xa0_24_activated = false;
|
|
|
|
xa0_25_collisionWarp = collisionWarp;
|
|
|
|
xa0_26_processed = false;
|
2016-02-16 03:25:06 +00:00
|
|
|
}
|
|
|
|
|
2017-09-10 09:04:51 +00:00
|
|
|
bool UpdateWarp() { return xa0_24_activated; }
|
|
|
|
void ModifyParticles(std::vector<CParticle>& particles);
|
|
|
|
void Activate(bool val) { xa0_24_activated = val; }
|
|
|
|
bool IsActivated() { return xa0_24_activated; }
|
2016-02-16 03:25:06 +00:00
|
|
|
FourCC Get4CharID() { return FOURCC('FWRP'); }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CFLAMEWARP_HPP__
|