Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2011  |  syntax: C++  |  size: 0.48 KB  |  hits: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef HUMAIN_H_INCLUDED
  2. #define HUMAIN_H_INCLUDED
  3. #include <SFML/Graphics.hpp>
  4.  
  5. class Humain  //creation de la classe Humain
  6. {
  7.     public:
  8.     Humain();
  9.     Humain(std::string nom, int vie);
  10.     bool estVivant(bool enVie);
  11.     void affichage(sf::RenderWindow& fenetre); // dessine le sprite quand on appelle cette atribut
  12.     ~Humain(); // Destructeur
  13.  
  14.     private:
  15.     int m_vie;
  16.     std::string m_nom;
  17.     sf::Sprite spriteTest;
  18. };
  19.  
  20.  
  21. #endif // HUMAIN_H_INCLUDED