Chunk.cpp 191 B

123456789101112
  1. #include "Chunk.h"
  2. Chunk::Chunk(SDL_Surface* imgDyn, int x, int y)
  3. :Affichable(imgDyn)
  4. {
  5. m_pos.setVecteur(x * LG_CHUNK, y * LG_CHUNK);
  6. }
  7. Chunk::~Chunk()
  8. {
  9. SDL_FreeSurface(m_img);
  10. }