Skip to content
fgrimau edited this page Dec 28, 2019 · 10 revisions

The Chunk class

Handles a 'chunk' of the map, defined by a global variable as a square of CHUNK_SIZE by CHUNK_SIZE

Chunk Methods

Constructors

  • Chunk()
  • Chunk(Chunk&)
  • ~Chunk()

Overrides

  • Chunk& operator=(const Chunk&)

Getters

  • SDL_Rect get_position() const
  • ImageSet* get_image_set() const

Setters

  • void set_position(int, int)
  • void set_position(SDL_Rect)
  • void set_image_set(ImageSet*)

Others

Clone this wiki locally