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

The Chunk class

no description..

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

  • ImageSet* m_image_set
  • SDL_Rect* m_position
  • GroundElement* m_layer1[CHUNK_SIZE][CHUNK_SIZE]
  • WallElement* m_layer2[CHUNK_SIZE][CHUNK_SIZE]
  • SceneryElement* m_layer3[CHUNK_SIZE][CHUNK_SIZE]

Clone this wiki locally