Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Particle.h

Go to the documentation of this file.
00001 
00007 #ifndef _PARTICLE_H_
00008 #define _PARTICLE_H_
00009 
00010 #include "../Math/Vector.h"
00011 
00012 //#pragma once
00013 
00014 friend class ParticleSystem;
00015 
00016 class Particle {
00017         public:
00018                 Particle();
00019                 ~Particle();
00020 
00021                 bool update(float dTime);
00022                 void setParent(ParticleSystem *parent);
00023 
00024         public:
00025                 Vec3    m_prevLocation;
00026                 Vec3    m_location;
00027                 Vec3    m_velocity;
00028                 Vec4    m_color;
00029                 Vec4    m_dColor;
00030 
00031                 float   m_age;
00032                 float   m_lifetime;
00033                 float   m_size;
00034                 float   m_dSize;
00035                 float   m_alpha;
00036                 float   m_dAlpha;
00037                 float   m_gravity;
00038                 float   m_dGravity;
00039 
00040                 float   m_orbiting;
00041 
00042         private:
00043                 ParticleSystem *m_parent;
00044 };
00045 
00046 #endif

Generated on Sun Jun 5 15:47:05 2005 for Defacto by  doxygen 1.4.3