00001 00002 // Shoot(r) 00009 00010 #ifndef ENTITE_JOUEUR_H 00011 #define ENTITE_JOUEUR_H 00012 00013 #include "ctrl_entite.h" 00014 #include "entite.h" 00015 #include "fx_fumee.h" 00016 #include "type_arme.h" 00017 #include "type_joueur.h" 00018 00019 #define BOUCLIER_TAILLE 2 00020 00022 class CEntiteJoueur : public CEntite 00023 { 00025 friend CEntiteJoueur* CEntityManager::CreateJoueur (); 00026 00027 private: 00028 CTypeJoueur* m_pTypeJoueur; 00029 CTypeArme* m_pTypeArme; 00030 CFumee *m_pFumee; 00031 CTimer m_TireTimer; 00032 CVecteur m_Desceleration; 00033 bool m_bTire; 00034 00035 CEntiteJoueur (); 00036 virtual ~CEntiteJoueur (); 00037 00038 public: 00040 static CEntiteJoueur* Create (CTypeJoueur* pTypeJoueur); 00041 00043 virtual int GetDommage () const; 00045 virtual CTexture* GetTexture () const; 00047 virtual EEntiteType GetType () const {return ENTITE_JOUEUR;} 00049 virtual float GetTaille () const; 00051 virtual void Update (); 00053 virtual void AddDommage (int iDommage); 00054 00056 void SetTirer (bool bTire); 00058 void Action (); 00060 CCouleur GetCouleur () const {return m_pTypeJoueur->GetCouleur ();} 00062 CTexture* GetTextureBouclier () const {return m_pTypeJoueur->GetTextureBouclier ();} 00064 void SetArme (CTypeArme* pTypeArme); 00066 void AjouterPoint (unsigned int uiPoint) {m_pTypeJoueur->AjouterPoint (uiPoint);} 00067 }; 00068 00069 #endif //ENTITE_JOUEUR_H
1.3.8