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

ctrl_entite.h

Aller à la documentation de ce fichier.
00001 00002 // Shoot(r) 00009 00010 #ifndef CTRL_ENTITE_H 00011 #define CTRL_ENTITE_H 00012 00021 #define CTRL_ENTITE_NOMBRE 96 00022 00023 #include "util.h" 00024 00025 class CEntite; 00026 class CEntiteArme; 00027 class CEntiteBonus; 00028 class CEntiteEnnemi; 00029 class CEntiteJoueur; 00030 00034 typedef struct 00035 { 00036 unsigned int m_uiEnnemiCree; 00037 unsigned int m_uiEnnemiDetruit; 00038 unsigned int m_uiEnnemiCreeTotal; 00039 unsigned int m_uiEnnemiDetruitTotal; 00040 } SStatistique; 00041 00043 class CEntityManager 00044 { 00045 private: 00046 static CEntityManager *m_pInstance; 00047 00055 CEntite *m_pEntite[CTRL_ENTITE_NOMBRE]; 00056 00058 SStatistique m_Statistique; 00059 00061 int GetIndexLibre () const; 00063 bool EstDansEcran (CVecteur Position, float fTaille) const; 00065 void UpdateEntite (); 00067 void GererCollision (); 00069 bool AnnulerProprietaire (CEntite* pEntite); 00070 00071 void Kill (unsigned int uiIndex); 00072 00074 CEntityManager (); 00076 ~CEntityManager (); 00077 00078 public: 00080 static CEntityManager* Instance (); 00082 static void Kill (); 00083 00086 CEntiteArme* CreateArme (); 00089 CEntiteBonus* CreateBonus (); 00092 CEntiteEnnemi* CreateEnnemi (); 00095 CEntiteJoueur* CreateJoueur (); 00096 00102 const CEntite* const GetEntiteParIndex (unsigned int uiIndex) const; 00104 const SStatistique & GetStatistique () const {return m_Statistique;} 00105 00107 void Init (); 00109 void Update (); 00110 }; 00111 00112 #endif //CTRL_ENTITE_H

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