source: GTP/trunk/App/Games/Jungle_Rumble/src/ParticleGroup.h @ 1378

Revision 1378, 919 bytes checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#pragma once
2#include "node.h"
3#include "NxPhysics.h"
4#include <vector>
5#include <list>
6
7class ParticleEmitter;
8class ParticleRenderer;
9
10#define SPTR boost::shared_ptr
11#define WPTR boost::weak_ptr
12
13class ParticleGroup :
14        public Node
15{
16public:
17        ParticleGroup(void);
18        ~ParticleGroup(void);
19
20        void useGravity(bool _gravity);
21        virtual void setParticleGroup(int _group);
22        void addParticle(SPTR<Node> particle);
23        void addParticleEmitter(SPTR<Node> particleEmitter);
24        void removeParticleEmitter(ParticleEmitter* particleEmitter);
25        virtual void removeChild(std::list<SPTR<Node> >::iterator _it);
26        virtual void removeChild(SPTR<Node> _child);
27
28        virtual void killMe();
29
30        void setUseHeatHaze(bool _useHeatHaze);
31        bool getUseHeatHaze();
32        virtual void updateBBox();
33
34        friend class ParticleRenderer;
35protected:
36        bool gravity;
37        bool useHeatHaze;
38        std::vector<ParticleEmitter*> emitterList;
39
40};
Note: See TracBrowser for help on using the repository browser.