Terrain.h 558 B

1234567891011121314151617181920212223242526
  1. #ifndef TERRAIN_H
  2. #define TERRAIN_H
  3. #include <iostream>
  4. #include "../Structures/Affichable.h"
  5. #include "Chunk.h"
  6. #define NB_Y_CHUNK 3000/LG_CHUNK
  7. #define NB_X_CHUNK 6000/LG_CHUNK
  8. class Terrain : public Affichable
  9. {
  10. public:
  11. Terrain(SDL_Surface* img);
  12. virtual ~Terrain();
  13. void virtual afficher(const Vec &lookAt, SDL_Surface* screen) const;
  14. protected:
  15. Chunk* m_chunk[NB_Y_CHUNK][NB_X_CHUNK];//[y][x]
  16. //Un jour il y aura des choses permettant la gestion des collisions
  17. };
  18. #endif // TERRAIN_H