Skip to content

Map_manager

fgrimau edited this page Dec 28, 2019 · 10 revisions

The Map_manager class

 Contains the prototypes for the MapManager class

Map_manager Methods

 Manages a "chunk" of the total map, which size is defined by CHUNK_SIZE
A chunk is composed of three layers of "items/images", the ground, the scenery, and the "objects"

Map_manager Methods

Constructors

  • MapManager()
  • MapManager(const MapManager&)
  • MapManager(int, int)
  • MapManager(SDL_Rect)
  • ~MapManager()

Override

  • MapManager& operator=(const MapManager&)

Getters

  • SDL_Rect* get_position() const

Setters

  • void set_position(SDL_Rect)
  • void set_position(int, int)

Others

  • SDL_Rect* m_position
  • Chunk* m_chunk

Clone this wiki locally