home *** CD-ROM | disk | FTP | other *** search
- #ifndef __LightEffectsParticleClusters_h__
- #define __LightEffectsParticleClusters_h__
-
- #include "ParticleCluster.h"
- //#include "GameObject.h"
- #include "Renderer.h"
- #include <list>
- using namespace std;
-
- class Mesh;
- class Vehicle;
- class GameObject;
-
- class DynamicLightParticleCluster:public ParticleCluster{
- public:
- // vec3_t pos;
- GameObject* gameObject;
- vec3_t col;
- ColAnim* colAnim;
- float radius;
- vector<Mesh*> meshes;
- vector<GLfloat*> meshColors;
- list<Vehicle*> vehicles;
- unsigned long nextUpdateMillis;
-
- DynamicLightParticleCluster(vec3_t pos, vec3_t col, float radius, unsigned long lifetime);
- DynamicLightParticleCluster(GameObject* obj, vec3_t col, float radius, unsigned long lifetime);
- // DynamicLightParticleCluster(vec3_t pos, ColAnim colAnim, float radius, unsigned long lifetime);
- // DynamicLightParticleCluster(GameObject* obj, ColAnim colAnim, float radius, unsigned long lifetime);
- ~DynamicLightParticleCluster();
-
- void render();
- void move();
-
- protected:
-
- void createAndAssignColors();
- void freeAndRevertColors();
-
- };
-
-
- #endif /* __LightEffectsParticleClusters_h__ */
-