Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. #ifndef ROOM_H
  2. #define ROOM_H
  3. #include <vector>
  4.  
  5.  
  6. class room
  7. {
  8.  
  9. public:
  10.  
  11.     /*
  12.         Se servir de MakeRoom
  13.         pour instancier une room
  14.     */
  15.     room *makeRoom( int nbDoorTmp , int nbEnnemisTmp ) ;
  16.  
  17.     int getNbDoor() const ;
  18.     void setNbDoor( int nbDoorTmp );
  19.     int getNbEnnemis() const ;
  20.     void setNbEnnemis( int nbEnnemisTmp );
  21.     std::vector< std::vector<int> > getRoomArray() const ;
  22.     void setRoomArray( std::vector< std::vector<int> > roomArrayTmp );
  23.     void drawRoom() const;
  24.  
  25. private:
  26.  
  27.     room( int nbDoorTmp , int nbEnnemisTmp , std::vector< std::vector<int> > roomArrayTmp );
  28.     int nbDoor;
  29.     int nbEnnemis;
  30.  
  31.     /*
  32.         Tableau qui conpose une salle
  33.         - 0 case vide
  34.         - 1 joueur
  35.         - 2 projectile
  36.         - 3 ennemis
  37.         - 4 mur indestructible
  38.     */
  39.     std::vector< std::vector<int> > roomArray ;
  40.    
  41.  
  42. };
  43.  
  44.    
  45.  
  46. #endif // ROOM_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement