// ----------------------------------------------------------------------- // // // MODULE : ParticleTrailFX.h // // PURPOSE : ParticleTrail special fx class - Definition // // CREATED : 4/27/98 // // ----------------------------------------------------------------------- // #ifndef __PARTICLE_TRAIL_FX_H__ #define __PARTICLE_TRAIL_FX_H__ #include "SpecialFX.h" struct PTCREATESTRUCT : public SFXCREATESTRUCT { PTCREATESTRUCT(); uint8 nType; }; inline PTCREATESTRUCT::PTCREATESTRUCT() { nType = 0; } class CParticleTrailFX : public CSpecialFX { public : CParticleTrailFX() : CSpecialFX() { VEC_INIT(m_vLastPos); VEC_INIT(m_vColor1); VEC_INIT(m_vColor2); VEC_INIT(m_vDriftOffset); m_nType = 0; m_fStartTime = -1.0f; m_fLifeTime = 0.0f; m_fFadeTime = 0.0f; m_fOffsetTime = 0.0f; m_nNumPerPuff = 1; m_fSegmentTime = 1.0f; } virtual LTBOOL Init(SFXCREATESTRUCT* psfxCreateStruct); virtual LTBOOL Update(); private : LTVector m_vLastPos; // Last Particle particle position LTVector m_vColor1; // Color of darkest Particle particles LTVector m_vColor2; // Color of lightest Particle particles LTVector m_vDriftOffset; // Particle drift offset LTFLOAT m_fSegmentTime; // When should we create a new segment LTFLOAT m_fFadeTime; // When should segment start to fade LTFLOAT m_fLifeTime; // How long segment stays around LTFLOAT m_fStartTime; // When did we start this crazy thing LTFLOAT m_fOffsetTime; // Time between particles int m_nNumPerPuff; // Number of particles per Particle puff uint8 m_nType; // Type of particle trail. }; #endif // __PARTICLE_TRAIL_FX_H__