| 1 | #ifndef MODULE_ParticleInterface_H | 
|---|
| 2 | #define MODULE_ParticleInterface_H | 
|---|
| 3 |  | 
|---|
| 4 | // #include "ParticleInterface.h" | 
|---|
| 5 | // #include <Ogre.h> | 
|---|
| 6 | // #include <OIS/OIS.h> | 
|---|
| 7 | // #include <CEGUI/CEGUI.h> | 
|---|
| 8 | // #include <CEGUIRenderer.h> | 
|---|
| 9 | #include <OgreParticleSystem.h> | 
|---|
| 10 | #include <OgreParticleEmitter.h> | 
|---|
| 11 | #include <OgreSceneManager.h> | 
|---|
| 12 |  | 
|---|
| 13 |  | 
|---|
| 14 | namespace particle | 
|---|
| 15 | { | 
|---|
| 16 |  | 
|---|
| 17 | class ParticleInterface | 
|---|
| 18 | { | 
|---|
| 19 | public: | 
|---|
| 20 | Ogre::ParticleSystem *particleSystem_; | 
|---|
| 21 |  | 
|---|
| 22 | ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName ); | 
|---|
| 23 | ~ParticleInterface( void ); | 
|---|
| 24 | void addToSceneNode( Ogre::SceneNode* sceneNode ); | 
|---|
| 25 | void dettachFromSceneNode( void ); | 
|---|
| 26 | Ogre::ParticleEmitter* getEmitter ( int emitterNr ); | 
|---|
| 27 | void newEmitter ( void ); | 
|---|
| 28 | void setPositionOfEmitter ( int emitterNr, Ogre::Vector3 position ); | 
|---|
| 29 | Ogre::Vector3 getPositionOfEmitter ( int emitterNr ); | 
|---|
| 30 | void setDirection ( Ogre::Vector3 direction ); | 
|---|
| 31 | Ogre::Vector3 getDirection ( void ); | 
|---|
| 32 | Ogre::Real getVelocity(); | 
|---|
| 33 | void setVelocity( Ogre::Real v ); | 
|---|
| 34 | int getRate(); | 
|---|
| 35 | void setRate( int r ); | 
|---|
| 36 | Ogre::Real getDistance(); | 
|---|
| 37 | void setDistance( Ogre::Real d ); | 
|---|
| 38 | Ogre::ColourValue getColour( void ); | 
|---|
| 39 | void setColour( Ogre::ColourValue colour ); | 
|---|
| 40 | void switchEnable( void ); | 
|---|
| 41 |  | 
|---|
| 42 | private: | 
|---|
| 43 | Ogre::SceneNode *sceneNode_; | 
|---|
| 44 | Ogre::SceneManager *sceneManager_; | 
|---|
| 45 | Ogre::Real distance_; | 
|---|
| 46 | Ogre::Real velocity_; | 
|---|
| 47 | int rate_; | 
|---|
| 48 | Ogre::ColourValue colour_; | 
|---|
| 49 | int numberOfEmitters_; | 
|---|
| 50 |  | 
|---|
| 51 | void standardizeEmitters(); | 
|---|
| 52 | }; | 
|---|
| 53 |  | 
|---|
| 54 |  | 
|---|
| 55 | } | 
|---|
| 56 | #endif | 
|---|