Page principale | Hiérarchie des classes | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier

ctrl_particule.h

Aller à la documentation de ce fichier.
00001 00002 // Shoot(r) 00009 00010 #ifndef CTRL_PARTICULE_H 00011 #define CTRL_PARTICULE_H 00012 00013 #include "texture.h" 00014 00015 #define CTRL_GENERATEUR_PARTICULE_NOMBRE 32 00016 #define FICHIER_TEXTURE_PARTICULE "./data/image/particule.tga" 00017 00018 class CEtoile; 00019 class CFumee; 00020 class CExplosion; 00021 class CParticleSystem; 00022 00024 class CParticleManager 00025 { 00026 private: 00027 static CParticleManager *m_pParticleManager; 00028 00029 CParticleSystem *m_pGenParticule[CTRL_GENERATEUR_PARTICULE_NOMBRE]; 00030 CTexture *m_pTexture; 00031 bool m_bActif; 00032 00033 int GetIndexLibre () const; 00034 void Kill (unsigned int uiIndex); 00035 00036 CParticleManager (); 00037 ~CParticleManager (); 00038 00039 public: 00041 static CParticleManager* Instance (); 00043 static void Kill (); 00044 00046 const CParticleSystem* GetGenerateurParIndex (unsigned int uiIndex) const; 00047 00049 CEtoile* CreateEtoile (); 00051 CFumee* CreateFumee (); 00053 CExplosion* CreateExplosion (); 00054 00056 void Update (); 00057 }; 00058 00059 #endif //CTRL_PARTICULE_H 00060

Généré le Sun Sep 26 11:36:46 2004 pour Shoot(r) par doxygen 1.3.8